From 40cce645f24e3fa3ec20c65e765070ff704b3493 Mon Sep 17 00:00:00 2001 From: ljf Date: Sun, 19 May 2019 19:02:35 +0200 Subject: [PATCH] [fix] Upgrade --- scripts/upgrade | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f36fbfd..156987b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,8 +94,12 @@ fi #================================================= # Backup config, plugins and themes and delete previous files -ynh_keep_if_no_upgrade themes/admin/* themes/question/* themes/survey/* plugins/* -ynh_keep application/config/config.php upload +ynh_keep_if_no_upgrade themes/admin/* +ynh_keep_if_no_upgrade themes/question/* +ynh_keep_if_no_upgrade themes/survey/* +ynh_keep_if_no_upgrade plugins/* +ynh_keep application/config/config.php +ynh_keep upload # Copie new files and restore config, plugins, upload and themes ynh_secure_remove $final_path @@ -132,8 +136,8 @@ set_permissions #================================================= # Migrate DB -cd $final_path/application/commands -ynh_exec_as "$app" php console.php updatedb +cd $final_path +ynh_exec_as "$app" php application/commands/console.php updatedb #================================================= # RELOAD NGINX