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

Add explicit removal of ep_table_of_contents when upgrading from a version older than 1.9.1~ynh2

This commit is contained in:
Alexandre Aubin 2023-12-11 09:13:12 +01:00
parent 89642cd165
commit 1e67c5ed31

View file

@ -143,6 +143,14 @@ chown $app:$app "$install_dir/credentials.json"
# INSTALL ETHERPAD'S PLUGINS
#=================================================
# If upgrading from an old version and table of content is there, remove it
if ynh_compare_current_package_version --comparison lt --version 1.9.1~ynh2
if ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ls 2>/dev/null | grep -q ep_table_of_contents
then
ynh_script_progression --message="Uninstalling ep_table_of_contents..." --weight=90
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm uninstall ep_table_of_contents
fi
then
ynh_script_progression --message="Installing Etherpad plugins..." --weight=90