Dirty upgrade - for advanced users. [NOT RECOMMENDED ;) ]
-
Sometimes we may not have the patience to upgrade with actual steps, backup and restore especially when we work with SNAPSHOT versions.
In this case, we may follow direct upgrade with the following steps.IMPORTANT: copy your entire
mycontroller
directory(command included in the steps below).# Stop MyController server mycontroller/bin/stop.sh # copy entire directory of MyController. >> IMPORTANT cp mycontroller mycontroller_old -r # download SNAPSHOT version # extract SNAPSHOT version tar xzf mycontroller-dist-standalone-*-SNAPSHOT-bundle.tar.gz # delete everything inside configuration directory rm mycontroller/conf/* -rf # copy configuration file from old directory cp mycontroller_old/conf/* mycontroller/conf/ -r # all set, now you can start your MyController instance mycontroller/bin/start.sh
-
typo in 4th command - missing 'o'
-
@skywatch Thank you! Updated.
-
It wouldn't be too difficult to write a bash script to automate this (maybe even downloading before uncompressing included - with user selectable 'stable' or 'snapshot' branch selection and backup and restore too....) and then have an 'update' button on the main page?
Would be easier for less technical people to upgrade then.......Possible??? -
@skywatch Let me check it. Thank you for the feedback
-
I created a googledrive download script!, maybe it is usefull for you
#!/bin/sh if [ "$#" -ne 2 ] ; then clear echo "Usage ./get-googledrive doc-id filename" echo "Where the doc-id is the number presented on the share link in google drive" exit 1 fi echo echo '-----------------------------------------------------------------------' echo 'Getting doc-id : ' $1 echo 'Saving to filename : ' $2 echo '-----------------------------------------------------------------------' echo wget --no-check-certificate 'https://docs.google.com/uc?export=download&id='$1 -O $2
(not sure if the doc-id changes once you post a new version.....)