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