From e5a179b915753bc3f0134c15e36c46367e59b98a Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 7 Mar 2021 10:37:31 +0100 Subject: [PATCH] Make sure self-upgrade is run by system user, not root --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4d78042..ff900c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -163,7 +163,7 @@ find $final_path -type d -exec chmod +s {} \; ynh_script_progression --message="Updating all plugins..." --weight=1 pushd "$final_path" - exec_as $app yes N | php${YNH_PHP_VERSION} bin/gpm update --all-yes --no-interaction + exec_as $app yes N | exec_as $app php${YNH_PHP_VERSION} bin/gpm update --all-yes --no-interaction popd #=================================================