mirror of
https://github.com/YunoHost-Apps/librephotos_ynh.git
synced 2024-09-03 19:36:12 +02:00
Fix some permissions
This commit is contained in:
parent
9859c1c945
commit
f30eea4de2
3 changed files with 6 additions and 6 deletions
|
@ -249,9 +249,9 @@ fi
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R root:$app $final_path
|
||||
chmod -R g+r,g-w,o-rwx $final_path
|
||||
chmod -R g=u,g-w,o-rwx $final_path
|
||||
chown -R $app:$app $data_path
|
||||
chmod -R g-w,o-rwx $data_path
|
||||
chmod -R g=u,g-w,o-rwx $data_path
|
||||
chown -R $app:$app $final_path/data_models
|
||||
chown -R $app:$app /var/log/$app
|
||||
chmod -R g-w,o-rwx /var/log/$app
|
||||
|
|
|
@ -114,9 +114,9 @@ ynh_install_app_dependencies $pkg_dependencies
|
|||
|
||||
# Restore permissions on app files
|
||||
chown -R root:$app $final_path
|
||||
chmod -R g+r,g-w,o-rwx $final_path
|
||||
chmod -R g=u,g-w,o-rwx $final_path
|
||||
chown -R $app:$app $data_path
|
||||
chmod -R g-w,o-rwx $data_path
|
||||
chmod -R g=u,g-w,o-rwx $data_path
|
||||
chown -R $app:$app $final_path/data_models
|
||||
chown -R $app:$app /var/log/$app
|
||||
chmod -R g-w,o-rwx /var/log/$app
|
||||
|
|
|
@ -220,9 +220,9 @@ fi
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R root:$app $final_path
|
||||
chmod -R g+r,g-w,o-rwx $final_path
|
||||
chmod -R g=u,g-w,o-rwx $final_path
|
||||
chown -R $app:$app $data_path
|
||||
chmod -R g-w,o-rwx $data_path
|
||||
chmod -R g=u,g-w,o-rwx $data_path
|
||||
chown -R $app:$app $final_path/data_models
|
||||
chown -R $app:$app /var/log/$app
|
||||
chmod -R g-w,o-rwx /var/log/$app
|
||||
|
|
Loading…
Add table
Reference in a new issue