Announcement

Collapse
No announcement yet.

Does anyone have a new update script for ubuntu

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

  • Does anyone have a new update script for ubuntu

    Hi All,

    Does anyone have an update script that works on Ubuntu - all previous version updates using my script have worked successfully, but when I run it now from 4.6.4.5 to 4.6.5.1 the response I received is "Its already up to date", the version.sh confirms I am not? Any ideas?

    Script below for comment (not mine - found on the forum)

    Kind regards

    Anthony

    !/bin/bash

    # Find out the latest version.
    CURVER=$( /usr/bin/curl -s https://nxfilter.org/curnxc.php )
    OLDVER=$( /usr/bin/dpkg -s nxcloud | /bin/grep Version | /usr/bin/awk {'print $2'} )

    if [ -z "$OLDVER" ]
    then
    echo "Can't find NxCloud installation to update."
    exit 0
    fi

    if [ $OLDVER = $CURVER ]; then
    echo "It's already up to date."
    exit 0
    fi

    # Downloading the latest version.
    FILENAME=nxcloud-${CURVER}.deb
    if [ ! -f $FILENAME ]
    then
    echo ""
    echo "### Trying to download NxCloud v${CURVER}."
    curl -O http://pub.nxfilter.org/$FILENAME
    fi

    if [ -f /nxcloud/nxd.jar ]
    then
    sudo systemctl stop nxcloud
    fi

    sleep 1
    echo ""
    echo "### Trying to install NxCloud v${CURVER}."
    sudo dpkg -i nxcloud-${CURVER}.deb

    sleep 1
    echo ""
    echo "### Starting NxCloud."
    sudo systemctl enable nxcloud
    sudo systemctl start nxcloud

    sleep 1
    echo ""
    SERVER_IP=$( /bin/hostname -I | awk '{print $1}' )
    echo "############################################# #### ####################"
    echo "Your admin GUI URL is http://<serverIP/FQDN>/admin"
    echo "It may take some time for NxCloud to finish its update process."
    echo "You can monitor its startup process with the following command."
    echo "tail -f /nxcloud/log/nxcloud.log"
    echo "############################################# #### ####################"

  • #2
    v4.6.5.1 is not released yet. We just made a notification for that as there's a major change to be notified users before they update it. It will be released next week.

    Comment


    • #3
      Great, Thank you!

      Comment

      Working...
      X