From 17cb4c252fe90dd185e6db809057c107d2a702cf Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sun, 12 Apr 2015 22:05:29 +0100 Subject: [PATCH] Adjustments on folder permissions --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b48d54d..90c0516 100644 --- a/scripts/install +++ b/scripts/install @@ -36,8 +36,12 @@ sudo mkdir -p $final_path sudo cp ../sources/index.html $final_path/ # Set permissions +sudo chmod 775 /var/www/webapp\_multi +sudo chmod 775 /var/www/webapp\_multi/$domain sudo chmod 775 -R $final_path -sudo chown -hR www-data:www-data /var/www/webapp\_multi +sudo chown www-data:www-data /var/www/webapp\_multi +sudo chown www-data:www-data /var/www/webapp\_multi/$domain +sudo chown -hR www-data:www-data $final_path # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf