From 7ec8ac4cbe3ecac0f0b897a7b4bf558107d341f3 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 25 Jul 2022 21:02:57 +0200 Subject: [PATCH] Fix upgrade --- manifest.json | 2 +- scripts/upgrade | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 8797b35..eab2505 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Forum software that is easy to use, powerful, and highly customisable", "fr": "Forum facile à utiliser, puissant et hautement personnalisable" }, - "version": "3.3.8~ynh1", + "version": "3.3.8~ynh2", "url": "http://www.phpbb.com/", "upstream": { "license": "GPL-2.0-only", diff --git a/scripts/upgrade b/scripts/upgrade index d77cb7f..b5869f1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,6 +118,10 @@ ynh_script_progression --message="Upgrading the $app..." --weight=1 ynh_exec_as $app php${phpversion} "$final_path/bin/phpbbcli.php" --no-interaction db:migrate --safe-mode +if [ -e "$final_path/install_old" ]; then + ynh_secure_remove --file="$final_path/install_old" +fi + if [ -e "$final_path/install" ]; then ynh_exec_as $app mv "$final_path/install" "$final_path/install_old" fi