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:
parent
8c4d362f15
commit
a2020f7f44
3 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue