From 55dedf562f4232c9246a0cd36e82807b12af3fe7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 15 Mar 2021 23:29:36 +0100 Subject: [PATCH] Fix --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 47be872..085e671 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,7 +22,7 @@ admin=$(ynh_app_setting_get --app=$app --key=admin) final_path=$(ynh_app_setting_get --app=$app --key=final_path) language=$(ynh_app_setting_get --app=$app --key=language) db_name=$(ynh_app_setting_get --app=$app --key=db_name) -db_pwd=$(ynh_app_setting_get "$app" mysqlpwd) +db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) #================================================= # CHECK VERSION @@ -117,6 +117,8 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Migrating database..." --weight=1 +chown -R $app $final_path/ + sudo -u $app /usr/bin/php$YNH_PHP_VERSION $final_path/protected/yii migrate/up --includeModuleMigrations=1 #=================================================