Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion utils/fixPermissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/runAfterUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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