From 6a032ab5fdb32fb4999578485ecc6c376c596d94 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Mon, 13 Jan 2014 15:37:49 +0100 Subject: [PATCH] set permission explicitely on all installed files --- scripts/install | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index f4f9bcb..a3e1322 100755 --- a/scripts/install +++ b/scripts/install @@ -35,12 +35,21 @@ sudo chmod -R 700 $var_root # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf -sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jirafeau.conf +nginxconf=/etc/nginx/conf.d/$domain.d/jirafeau.conf +sudo cp ../conf/nginx.conf $nginxconf +sudo chown root: $nginxconf +sudo chmod 600 $nginxconf sed -i "s@NAMETOCHANGE@jirafeau@g" ../conf/php-fpm.conf -sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/jirafeau.conf -sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-jirafeau.ini +finalphpconf=/etc/php5/fpm/pool.d/jirafeau.conf +sudo cp ../conf/php-fpm.conf $finalphpconf +sudo chown root: $finalphpconf +sudo chmod 644 $finalphpconf +finalphpini=/etc/php5/fpm/conf.d/20-jirafeau.ini +sudo cp ../conf/php-fpm.ini $finalphpini +sudo chown root: $finalphpini +sudo chmod 644 $finalphpini if [ $is_public = "Yes" ]; then