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

Fix upgrade

This commit is contained in:
yalh76 2022-05-09 23:59:53 +02:00
parent a70c6f5328
commit bd92d107a2

View file

@ -53,11 +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
# Change to head file
if [ -f "/etc/$app/config.d/server.toml" ]
then
ynh_delete_file_checksum --file=/etc/"$app"/config.d/server.toml
ynh_secure_remove --file=/etc/"$app"/config.d/server.toml
ynh_delete_file_checksum --file="/etc/$app/config.d/server.toml"
mv "/etc/$app/config.d/server.toml" "/etc/$app/config.d/server.toml.head"
ynh_store_file_checksum --file="/etc/$app/config.d/server.toml.head"
fi
#=================================================