1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpbb_ynh.git synced 2024-09-03 19:56:36 +02:00

Fix upgrade

This commit is contained in:
yalh76 2022-07-25 21:02:57 +02:00
parent b7a6e64254
commit 7ec8ac4cbe
2 changed files with 5 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"en": "Forum software that is easy to use, powerful, and highly customisable", "en": "Forum software that is easy to use, powerful, and highly customisable",
"fr": "Forum facile à utiliser, puissant et hautement personnalisable" "fr": "Forum facile à utiliser, puissant et hautement personnalisable"
}, },
"version": "3.3.8~ynh1", "version": "3.3.8~ynh2",
"url": "http://www.phpbb.com/", "url": "http://www.phpbb.com/",
"upstream": { "upstream": {
"license": "GPL-2.0-only", "license": "GPL-2.0-only",

View file

@ -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 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 if [ -e "$final_path/install" ]; then
ynh_exec_as $app mv "$final_path/install" "$final_path/install_old" ynh_exec_as $app mv "$final_path/install" "$final_path/install_old"
fi fi