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:
parent
e5a179b915
commit
defa321bb5
3 changed files with 9 additions and 9 deletions
|
@ -96,9 +96,9 @@ ynh_add_fpm_config --usage=medium --footprint=medium --package="$extra_php_depen
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R $app:www-data $final_path
|
chown -R $app:www-data $final_path
|
||||||
find $final_path -type f -exec chmod 664 {} \;
|
find $final_path -type f -exec chmod 660 {} \;
|
||||||
find $final_path/bin -type f -exec chmod 775 {} \;
|
find $final_path/bin -type f -exec chmod 770 {} \;
|
||||||
find $final_path -type d -exec chmod 775 {} \;
|
find $final_path -type d -exec chmod 770 {} \;
|
||||||
find $final_path -type d -exec chmod +s {} \;
|
find $final_path -type d -exec chmod +s {} \;
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -74,9 +74,9 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R $app:www-data $final_path
|
chown -R $app:www-data $final_path
|
||||||
find $final_path -type f -exec chmod 664 {} \;
|
find $final_path -type f -exec chmod 660 {} \;
|
||||||
find $final_path/bin -type f -exec chmod 775 {} \;
|
find $final_path/bin -type f -exec chmod 770 {} \;
|
||||||
find $final_path -type d -exec chmod 775 {} \;
|
find $final_path -type d -exec chmod 770 {} \;
|
||||||
find $final_path -type d -exec chmod +s {} \;
|
find $final_path -type d -exec chmod +s {} \;
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -150,9 +150,9 @@ fi
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R $app:www-data $final_path
|
chown -R $app:www-data $final_path
|
||||||
find $final_path -type f -exec chmod 664 {} \;
|
find $final_path -type f -exec chmod 660 {} \;
|
||||||
find $final_path/bin -type f -exec chmod 775 {} \;
|
find $final_path/bin -type f -exec chmod 770 {} \;
|
||||||
find $final_path -type d -exec chmod 775 {} \;
|
find $final_path -type d -exec chmod 770 {} \;
|
||||||
find $final_path -type d -exec chmod +s {} \;
|
find $final_path -type d -exec chmod +s {} \;
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue