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 "############################################# #### ####################"
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 "############################################# #### ####################"
Comment