Announcement

Collapse
No announcement yet.

Command line upgrade

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Command line upgrade

    I am away from home at the moment but have ssh command line access to my HS3 Linux system. Can I do the upgrade to .500 from the command line? I have already downloaded the zipped file for the upgrade.

    Thanks
    Steve

    #2
    I am running HS on an Ubuntu 18.04 LTS custom built system. The only option I have for upgrades is via the command line. Should not be a problem.

    Comment


      #3
      sesykes71 My you're brave...
      HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

      Comment


        #4
        Not that brave, I think I will wait until I get home to upgrade since I see several users with issues with events with the new version.

        Comment


          #5
          Originally posted by sesykes71 View Post
          I am away from home at the moment but have ssh command line access to my HS3 Linux system. Can I do the upgrade to .500 from the command line? I have already downloaded the zipped file for the upgrade.

          Thanks
          Steve
          Yes, even though I'm local that is exactly what I did.

          from setup:
          backup z-wave controller
          backup database
          Shutdown HS

          SSH into linux box.
          Tar entire HomeSeer directory structure, allowing complete roll back easily.
          get the update
          extract the update
          reboot

          assuming HS3 is installed in /usr/local/HomeSeer

          Tar the entire directory

          Code:
          CD /usr/local
          sudo tar -zcvf homeseer-backup-before-upgrade.tar.gz  HomeSeer
          Get the update (still in directory /usr/local)

          Code:
          sudo wget http://homeseer.com/updates3/hs3_linux_3_0_0_500.tar.gz
          extract the update file (still in directory /usr/local)

          Code:
          sudo tar -zxvf updates3/hs3_linux_3_0_0_500.tar.gz
          reboot the system

          Code:
          sudu shutdown -r now

          EDIT : I also do a shutdown, tar HomeSeer directory and reboot before I update any plugins, so I can easily roll back if the system gets into a fubar state.

          HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
          Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
          Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

          Comment


            #6
            drparker151 While that will work, HS actually includes a script that does the upgrade called updatehs.sh Just run it with the last number in the version, e.g. updatehs.sh 500 and it will download the file, unpack it, and run the installer.

            Good idea to tar the directory first as you suggest!

            Comment


              #7
              bsobel Thanks. that makes a bit easier and less typing
              HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
              Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
              Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

              Comment


                #8
                Originally posted by bsobel View Post
                updatehs.sh 500
                Where do I put that in terminal?

                Comment


                  #9
                  Originally posted by bsobel View Post
                  drparker151 While that will work, HS actually includes a script that does the upgrade called updatehs.sh Just run it with the last number in the version, e.g. updatehs.sh 500 and it will download the file, unpack it, and run the installer.

                  Good idea to tar the directory first as you suggest!
                  Where is the updatehs.sh located? I couldn't find it.

                  Comment


                    #10
                    Originally posted by pcgirl65 View Post

                    Where is the updatehs.sh located? I couldn't find it.
                    It should be in the directory you installed HomeSeer in. In my case /usr/local/HomeSeer.

                    Comment


                      #11
                      I see it there but what is the command to use it. I tried sudo updatehs.sh 548 but that didn't work.

                      Comment


                        #12
                        Originally posted by pcgirl65 View Post
                        I see it there but what is the command to use it. I tried sudo updatehs.sh 548 but that didn't work.
                        You have to give the path in Linux.

                        If it is in the current directory:
                        sudo ./update.sh
                        Otherwise give the full path

                        If it will not execute give execute permission to the script:
                        sudo chmod +x ./update.sh
                        HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

                        Comment


                          #13
                          You want to :
                          - Go to Too.s > System > Linux Tools
                          - Login
                          - ./updatehs.sh version number
                          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                          Comment


                            #14
                            Originally posted by rprade View Post
                            You have to give the path in Linux.

                            If it is in the current directory:
                            sudo ./update.sh
                            Otherwise give the full path

                            If it will not execute give execute permission to the script:
                            sudo chmod +x ./update.sh
                            Do you mean ./updatehs.sh?

                            Comment


                              #15
                              Originally posted by Rupp View Post
                              You want to :
                              - Go to Too.s > System > Linux Tools
                              - Login
                              - ./updatehs.sh version number
                              Do you have to stop HS first?

                              Comment

                              Working...
                              X