From 099c3fc95d32899713dfb19d3c99a6cb9a3555df Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 9 May 2022 20:01:43 +0200 Subject: [PATCH] remove the old server.toml on upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index de647c5..c3b9f01 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,6 +53,12 @@ ynh_systemd_action --service_name="$app" --action="stop" --line_match="Stopped" #================================================= ynh_script_progression --message="Ensuring downward compatibility..." +# Upgrade from <=0.6.6~ynh1: +if ynh_compare_current_package_version --comparison le --version 0.6.6~ynh1 +then + rm /etc/"$app"/config.d/server.toml +fi + #================================================= # CREATE DEDICATED USER #=================================================