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