1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

handle the 2.27 -> 2.30 migration

This commit is contained in:
Kay0u 2024-06-23 21:44:40 +02:00
parent 7264870c66
commit 30697f7a77
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
There are a lot of broken plugins after the 2.30 migration.
In order to migrate your blog, we had to deactivate all plugins by creating a `_disabled` file inside each plugin folder located in `__INSTALL_DIR__/plugins/`.
Please remove these `_disabled` files one by one and make sure your blog is still working after each deletion.

View file

@ -58,6 +58,15 @@ fi
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if ynh_compare_current_package_version --comparison lt --version 2.30.0; then
ynh_print_warn --message="Disable all plugins before the migration. To reactivate them, navigate to all plugins at $install_dir/plugins/, and remove each \"_disabled\" file one by one, and make sure you blog works as expected after each deletion"
for folder in "$install_dir"/plugins/*/
do
ynh_print_warn --message="Plugin $folder disabled"
touch "$folder"/_disabled
done
fi
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..."