diff --git a/scripts/upgrade b/scripts/upgrade index d58741f..1f56e5e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,6 +145,7 @@ chown $app:$app "$install_dir/credentials.json" # 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 +then 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