diff --git a/scripts/install b/scripts/install index d980b89..bca64e6 100755 --- a/scripts/install +++ b/scripts/install @@ -305,7 +305,7 @@ ynh_store_file_checksum "$final_path/config.ini" ### that really need such authorization. # Set permissions to app files -chown -R $app: $final_path +chown -R "$app":"$app" "$final_path" #================================================= # SETUP LOGROTATE diff --git a/scripts/restore b/scripts/restore index 12c349f..a427469 100755 --- a/scripts/restore +++ b/scripts/restore @@ -74,7 +74,7 @@ ynh_system_user_create "$app" "$final_path" #================================================= # Restore permissions on app files -chown -R root: $final_path +chown -R "$app":"$app" "$final_path" #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 18ddb49..ebdca4f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -155,7 +155,7 @@ ynh_add_systemd_config #================================================= # Set permissions on app files -chown -R $app: $final_path +chown -R "$app":"$app" "$final_path" #================================================= # SETUP SSOWAT