Comments (4)
I added this boolean in the latest PR as a fix for "moving the libreoffice folder then failing the requirements, leaving the existing loolswd in an unusable state"
So basically,
Before the PR #50 , the script was moving Lo_dir so the "test available disk space" part find that "LO is not here" and add the 12GB requirement. This part was breaking loowsd in case of script failure.
What I changed is : the script compare lo_local_version and lo_version, if not equal set lo_updated to true
When calculating the disk space requirement, the script add the 12GB if instdir do not exist OR lo_updated is true. This mean : add the 12GB space if LO not compiled or the expected version is different than the installed version
the "move Lo_dir somewhere else" part is done just before downloading the new LO sources (and now I realise it should be done AFTER).
That's how it should work but obviously even with an up to date compiled LO version it still added the 12 GB requirement
After some research:
The error here is lo_updated is not set explicitly to false.
Fix today in the next PR.
PS: the script is beginning to be very complex and we're beginning to hit some bash limitations. I'm considering to Split the script into multiples scripts for readability...
from officeonlin-install.sh.
Hi
I noted at line 41 that the script entered condition line 231 directly, without passing over the OR condition
+ declare -A mountPointArray
+ '[' '!' -d /opt/libreoffice/instdir ']'
+ mountPointArray["$lo_fs"]=12000
declare -A mountPointArray # declare associative array
if [ ! -d ${lo_dir}/instdir ] || ${lo_updated}; then
mountPointArray["$lo_fs"]=$((mountPointArray["$lo_fs"]+$lo_req_vol))
fi
means that instdir doesn't exist ?
What's the content of /opt/libreoffice on your host ?
from officeonlin-install.sh.
from officeonlin-install.sh.
What does this lo_updated do?
from officeonlin-install.sh.
Related Issues (20)
- Build error on Debian 9 HOT 1
- Multiple editors "crashes" loolwsd HOT 1
- Build error on Debian 10 HOT 2
- Build Error on Debian 10 HOT 3
- [SOLVED] Error Editing Docs with Γ€,ΓΆ,ΓΌ etc. HOT 6
- Build fails on rapsberry pi 4 running Raspian Buster HOT 1
- I build a docker image and pushed it to docker hub. HOT 3
- Error when creating document HOT 11
- openjdk error HOT 1
- Style sidebar HOT 2
- configure: error: unrecognized options: --disable-gstreamer-0-10, --disable-kde4 HOT 5
- In deleteTestDirectory function: remove Directory file:///tmp/????'?? HOT 2
- Collaboration in document bug? HOT 1
- openjdk-8-jdk : unknown command HOT 1
- ERR No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient
- Could Node.js be updated to a supported version? HOT 6
- Build process on Ubuntu 18.04 not working HOT 5
- Debian 11 HOT 3
- can't configure multiple hosts in the new group and alias_group options HOT 3
- download as pdf not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from officeonlin-install.sh.