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

Fix group permissions

This commit is contained in:
tituspijean 2021-03-27 00:19:32 +01:00
parent 380d91cf67
commit 561098119e
3 changed files with 3 additions and 3 deletions

View file

@ -95,7 +95,7 @@ ynh_add_fpm_config --usage=medium --footprint=medium --package="$extra_php_depen
#=================================================
# Set permissions on app files
chown -R $app:$app "$final_path"
chown -R $app:www-data "$final_path"
find "$final_path" -type f -exec chmod 640 {} \;
find "$final_path/bin" -type f -exec chmod 750 {} \;
find "$final_path" -type d -exec chmod 750 {} \;

View file

@ -73,7 +73,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
# Restore permissions on app files
chown -R $app:$app "$final_path"
chown -R $app:www-data "$final_path"
find "$final_path" -type f -exec chmod 640 {} \;
find "$final_path/bin" -type f -exec chmod 750 {} \;
find "$final_path" -type d -exec chmod 750 {} \;

View file

@ -151,7 +151,7 @@ fi
#=================================================
# Set permissions on app files
chown -R $app:$app "$final_path"
chown -R $app:www-data "$final_path"
find "$final_path" -type f -exec chmod 640 {} \;
find "$final_path/bin" -type f -exec chmod 750 {} \;
find "$final_path" -type d -exec chmod 750 {} \;