diff --git a/scripts/upgrade b/scripts/upgrade index 03363d7..05adba4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -110,14 +110,14 @@ then # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" + chmod 750 "$final_path" + chmod -R o-rwx "$final_path" + chown -R $app:www-data "$final_path" + ynh_exec_as $app php${phpversion} $final_path/console core:update -n fi fi -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # NGINX CONFIGURATION #=================================================