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:
parent
7264870c66
commit
30697f7a77
2 changed files with 14 additions and 0 deletions
5
doc/POST_UPGRADE.d/2.30.0~ynh1.md
Normal file
5
doc/POST_UPGRADE.d/2.30.0~ynh1.md
Normal 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.
|
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue