From f30eea4de24cd49f642a4027fea3b82f00b4f2d4 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Wed, 31 Mar 2021 10:57:41 -0400 Subject: [PATCH] Fix some permissions --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 1e249c3..dec871b 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/restore b/scripts/restore index 5372f67..4ae668e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 8eaff83..3e64238 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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