1
0
Fork 0
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:
Jules Bertholet 2021-03-31 10:57:41 -04:00
parent 9859c1c945
commit f30eea4de2
3 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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