Fix access to var directory

Fix cron file EOL
Fix access rights when restoring
This commit is contained in:
Jimmy Monin
2016-09-18 11:09:39 +02:00
parent 57708e3169
commit a7c054b535
5 changed files with 3 additions and 21 deletions

View File

@ -22,8 +22,8 @@ src_path="/var/www/${app}"
sudo cp -a ./sources "$src_path"
# Restore permissions to app files
# you may need to make some file and/or directory writeable by www-data (nginx user)
sudo chown -R root: "$src_path"
sudo chown -R www-data: "$src_path/var"
# Create and restore the database
dbname=$app