Git Product home page Git Product logo

Comments (4)

aalaesar avatar aalaesar commented on July 2, 2024 1

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.

aalaesar avatar aalaesar commented on July 2, 2024

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.

Kassiematis avatar Kassiematis commented on July 2, 2024

instdir does exist, see file.
screen

from officeonlin-install.sh.

Kassiematis avatar Kassiematis commented on July 2, 2024

What does this lo_updated do?

from officeonlin-install.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.