diff --git a/scripts/install b/scripts/install index 3e72ba4..f42c748 100755 --- a/scripts/install +++ b/scripts/install @@ -247,8 +247,11 @@ ynh_store_file_checksum --file="$final_path/.htaccess" # Set permissions to app files chown -R root: $final_path +chmod o-rwx $final_path +chown $app:www-data $final_path + # Remove database initialization file -#rm $final_path/qa-include/qa-install.php +rm $final_path/qa-include/qa-install.php #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index a24e6f6..38593d2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -75,6 +75,9 @@ ynh_system_user_create --username=$app # Restore permissions on app files chown -R root: $final_path +chmod o-rwx $final_path +chown $app:www-data $final_path + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 75b78a8..cab6cc1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -153,6 +153,9 @@ fi # Set permissions on app files chown -R root: $final_path +chmod o-rwx $final_path +chown $app:www-data $final_path + #================================================= # RELOAD NGINX #=================================================