Browse Source

Added some extra text to clarify use of variable APACHEUSER depending on Linux distribution

Michael Honkoop 4 months ago
parent
commit
7da5b6f2ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nextcloud-updates.sh

+ 2 - 2
nextcloud-updates.sh

@@ -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\}$//')