1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

Remove all 'others' permissions in final_path

This commit is contained in:
tituspijean 2021-03-25 08:38:38 +01:00
parent e5a179b915
commit defa321bb5
3 changed files with 9 additions and 9 deletions

View file

@ -96,9 +96,9 @@ ynh_add_fpm_config --usage=medium --footprint=medium --package="$extra_php_depen
# Set permissions on app files
chown -R $app:www-data $final_path
find $final_path -type f -exec chmod 664 {} \;
find $final_path/bin -type f -exec chmod 775 {} \;
find $final_path -type d -exec chmod 775 {} \;
find $final_path -type f -exec chmod 660 {} \;
find $final_path/bin -type f -exec chmod 770 {} \;
find $final_path -type d -exec chmod 770 {} \;
find $final_path -type d -exec chmod +s {} \;
#=================================================

View file

@ -74,9 +74,9 @@ ynh_system_user_create --username=$app --home_dir=$final_path
# Restore permissions on app files
chown -R $app:www-data $final_path
find $final_path -type f -exec chmod 664 {} \;
find $final_path/bin -type f -exec chmod 775 {} \;
find $final_path -type d -exec chmod 775 {} \;
find $final_path -type f -exec chmod 660 {} \;
find $final_path/bin -type f -exec chmod 770 {} \;
find $final_path -type d -exec chmod 770 {} \;
find $final_path -type d -exec chmod +s {} \;
#=================================================

View file

@ -150,9 +150,9 @@ fi
# Set permissions on app files
chown -R $app:www-data $final_path
find $final_path -type f -exec chmod 664 {} \;
find $final_path/bin -type f -exec chmod 775 {} \;
find $final_path -type d -exec chmod 775 {} \;
find $final_path -type f -exec chmod 660 {} \;
find $final_path/bin -type f -exec chmod 770 {} \;
find $final_path -type d -exec chmod 770 {} \;
find $final_path -type d -exec chmod +s {} \;
#=================================================