1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

change permissions on files and directories

This commit is contained in:
Robles Rodolphe 2021-05-10 16:02:39 +02:00
parent 29a0cbb7ca
commit 48578ae98c
2 changed files with 22 additions and 3 deletions

View file

@ -86,7 +86,17 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc
#=================================================
chown -R $app:$app $final_path
chmod 755 $final_path
chmod 400 config.dist.php config.local.php index.php sous-domaine.html VERSION
find $final_path/srcipts -type d -exec chmod 500 {} +
find $final_path/srcipts -type f -exec chmod 400 {} +
find $final_path/templates -type d -exec chmod 500 {} +
find $final_path/templates -type f -exec chmod 400 {} +
find $final_path/include -type d -exec chmod 500 {} +
find $final_path/include -type f -exec chmod 400 {} +
find $final_path/data -type d -exec chmod 700 {} +
find $final_path/data -type f -exec chmod 600 {} +
find /var/www/garradin/www -type d -exec chmod 755 {} +
find /var/www/garradin/www -type f -exec chmod 644 {} +
#=================================================
# SETUP SSOWAT

View file

@ -207,8 +207,17 @@ fi
# Set permissions on app files
chown -R $app:$app $final_path
chmod 755 $final_path
chmod 400 config.dist.php config.local.php index.php sous-domaine.html VERSION
find $final_path/srcipts -type d -exec chmod 500 {} +
find $final_path/srcipts -type f -exec chmod 400 {} +
find $final_path/templates -type d -exec chmod 500 {} +
find $final_path/templates -type f -exec chmod 400 {} +
find $final_path/include -type d -exec chmod 500 {} +
find $final_path/include -type f -exec chmod 400 {} +
find $final_path/data -type d -exec chmod 700 {} +
find $final_path/data -type f -exec chmod 600 {} +
find /var/www/garradin/www -type d -exec chmod 755 {} +
find /var/www/garradin/www -type f -exec chmod 644 {} +
#=================================================
# RELOAD NGINX
#=================================================