diff --git a/utils/fixPermissions.sh b/utils/fixPermissions.sh index 65c62e0..cda9888 100755 --- a/utils/fixPermissions.sh +++ b/utils/fixPermissions.sh @@ -22,7 +22,11 @@ die () { unset CDPATH myPath="$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )" scriptPath="$(dirname "$myPath")" -webPath="/var/www" +if [ $1 ]; then + webPath=$1 +else + webPath="/var/www" +fi echo -e "\n***** Fixing file permissions for $webPath *****" sudo chown -R www-data:www-data "$webPath"||warn diff --git a/utils/runAfterUpdate.sh b/utils/runAfterUpdate.sh index 7d7a440..bf4674b 100755 --- a/utils/runAfterUpdate.sh +++ b/utils/runAfterUpdate.sh @@ -10,4 +10,4 @@ myPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" sudo bash "$myPath"/installDependencies.sh sudo bash "$myPath"/updateCron.sh -sudo bash "$myPath"/fixPermissions.sh +sudo bash "$myPath"/fixPermissions.sh $1