1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

Tweak permissions

This commit is contained in:
Jules Bertholet 2021-03-31 11:02:15 -04:00
parent 8c4d362f15
commit a2020f7f44
3 changed files with 3 additions and 6 deletions

View file

@ -190,8 +190,7 @@ systemctl daemon-reload --quiet
#=================================================
# Set permissions to app files
chown -R root:$app $final_path
chmod -R o-rwx $final_path
chmod -R g-w $final_path
chmod -R g=u,g-w,o-rwx $final_path
setfacl -n -R -m user:www-data:rx -m default:user:www-data:rx $final_path
setfacl -n -R -m user:www-data:- -m default:user:www-data:- $final_path/envs

View file

@ -84,8 +84,7 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
# Restore permissions on app files
chown -R root:$app $final_path
chmod -R o-rwx $final_path
chmod -R g-w $final_path
chmod -R g=u,g-w,o-rwx $final_path
setfacl -n -R -m user:www-data:rx -m default:user:www-data:rx $final_path
setfacl -n -R -m user:www-data:- -m default:user:www-data:- $final_path/envs
chown -R $app:$app $datadir

View file

@ -144,8 +144,7 @@ systemctl daemon-reload --quiet
# Set permissions on app files
chown -R root:$app $final_path
chmod -R o-rwx $final_path
chmod -R g-w $final_path
chmod -R g=u,g-w,o-rwx $final_path
setfacl -n -R -m user:www-data:rx -m default:user:www-data:rx $final_path
setfacl -n -R -m user:www-data:- -m default:user:www-data:- $final_path/envs
chown -R $app:$app $datadir