@@ -14,7 +14,7 @@ RELEASEURL="https://download.nextcloud.com/server/releases/"
BASEPATH="/var/www/html"
-# set the correct user for running the commands ( either apache or www-data )
+# set the correct user for running the commands ( either apache or www-data, this depends on your Linux-Distribution)
APACHEUSER="apache"
@@ -33,7 +33,7 @@ fi
NCINSTALLED=$(sudo -u $APACHEUSER php $BASEPATH/occ status --output=json | jq -r '.versionstring')
# Get latest avaiable version information
-# In v29.x.x this has changed outputs <name-of-instance> <version,
+# In v29.x.x this has changed outputs <name-of-instance> <version>,
NCAVAILABLE=$(curl -s $RELEASEURL | sed -e 's/<[^>]*>//g' | grep -o "^nextcloud.*.zip" | tail -n1 | cut -d'-' -f 2 | sed 's/.\{4\}$//')