• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Getting Started
    upgradedirtysnapshot
    6 Posts 3 Posters 1.8k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jkandasaJ Offline
      jkandasa
      last edited by jkandasa

      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
      
      1 Reply Last reply Reply Quote 0
      • skywatchS Offline
        skywatch
        last edited by

        typo in 4th command - missing 'o'

        jkandasaJ 1 Reply Last reply Reply Quote 1
        • jkandasaJ Offline
          jkandasa @skywatch
          last edited by

          @skywatch Thank you! Updated.

          1 Reply Last reply Reply Quote 0
          • skywatchS Offline
            skywatch
            last edited by skywatch

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

            jkandasaJ 1 Reply Last reply Reply Quote 1
            • jkandasaJ Offline
              jkandasa @skywatch
              last edited by

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

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                Tag MOD @jkandasa
                last edited by Tag

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                0

                Online

                587

                Users

                529

                Topics

                3.4k

                Posts
                Copyright © 2015-2025 MyController.org | Contributors | Localization