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