Dirty upgrade - for advanced users. [NOT RECOMMENDED ;) ]


  • ADMIN

    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'


  • ADMIN

    @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??? 😉


  • ADMIN

    @skywatch Let me check it. Thank you for the feedback


  • MOD

    @jkandasa

    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.....)


 

2
Online

2.3k
Users

303
Topics

1.8k
Posts

Looks like your connection to MYCONTROLLER.ORG was lost, please wait while we try to reconnect.