1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00

set permission explicitely on all installed files

This commit is contained in:
Julien Malik 2014-01-13 15:37:49 +01:00
parent 3baaa0929e
commit 6a032ab5fd

View file

@ -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