• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

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

    scheduled pinned locked moved Getting Started
    upgradedirtysnapshot
    6 posts 3 posters 2.1k views 2 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • jkandasaJ offline
      jkandasa
      global: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
      
      one-reply-to-this-post last-reply-time reply quote 0
      • skywatchS offline
        skywatch
        global:last-edited-by,

        typo in 4th command - missing 'o'

        jkandasaJ one-reply-to-this-post last-reply-time reply quote 1
        • jkandasaJ offline
          jkandasa @skywatch
          global:last-edited-by,

          @skywatch Thank you! Updated.

          one-reply-to-this-post last-reply-time reply quote 0
          • skywatchS offline
            skywatch
            global: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 one-reply-to-this-post last-reply-time reply quote 1
            • jkandasaJ offline
              jkandasa @skywatch
              global:last-edited-by,

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

              T one-reply-to-this-post last-reply-time reply quote 0
              • T offline
                Tag MOD @jkandasa
                global: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.....)

                one-reply-to-this-post last-reply-time reply quote 0
                • first-post
                  last-post

                0

                online

                644

                users

                532

                topics

                3.4k

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