From ee28f61d873c580a3e411ba8664bda4b3074d3a2 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 11 Dec 2023 11:27:31 +0100 Subject: [PATCH] Aaaand forgot to add a then after if :| --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) 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