From 96ba711929c308ae9c30835d93c800798fdc4c19 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 23 Oct 2016 13:43:34 +0200 Subject: [PATCH] move around variables to the right place --- nextcloud_update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 813abfa5..8365e566 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -15,13 +15,13 @@ HTML=/var/www NCPATH=$HTML/nextcloud SCRIPTS=/var/scripts BACKUP=/var/NCBACKUP -# Versions -CURRENTVERSION=$(php $NCPATH/status.php | grep "versionstring" | awk '{print $3}') -NCVERSION=$(curl -s $DOWNLOADREPO/ | tac | grep unknown.gif | sed 's/.*"nextcloud-\([^"]*\).zip.sha512".*/\1/;q') -# Static values +#Static Values STATIC="https://raw.githubusercontent.com/nextcloud/vm/master/static" DOWNLOADREPO="https://download.nextcloud.com/server/releases" SECURE="$SCRIPTS/setup_secure_permissions_nextcloud.sh" +# Versions +CURRENTVERSION=$(php $NCPATH/status.php | grep "versionstring" | awk '{print $3}') +NCVERSION=$(curl -s $DOWNLOADREPO/ | tac | grep unknown.gif | sed 's/.*"nextcloud-\([^"]*\).zip.sha512".*/\1/;q') # Must be root [[ `id -u` -eq 0 ]] || { echo "Must be root to run script, in Ubuntu type: sudo -i"; exit 1; }