From 18eab48d51fbd34f76f830db4e4ba1dde5ff2fd6 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 31 Aug 2022 20:35:56 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d3448cb..95c3b59 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -163,14 +163,14 @@ ynh_script_progression --message="Migrating database..." --weight=1 chown -R $app $final_path/ -sudo -u $app /usr/bin/php$phpversion $final_path/protected/yii migrate/up --includeModuleMigrations=1 +ynh_exec_as $app /usr/bin/php$phpversion $final_path/protected/yii migrate/up --includeModuleMigrations=1 --interactive=0 #================================================= # UPDATE MODULES #================================================= ynh_script_progression --message="Updating modules..." --weight=1 -sudo -u $app /usr/bin/php$phpversion $final_path/protected/yii module/update-all +ynh_exec_as $app /usr/bin/php$phpversion $final_path/protected/yii module/update-all --interactive=0 chmod 750 "$final_path" chmod -R o-rwx "$final_path"