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

remove the old server.toml on upgrade

This commit is contained in:
OniriCorpe 2022-05-09 20:01:43 +02:00
parent 93aa4564d8
commit 099c3fc95d

View file

@ -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
#=================================================