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:
parent
a70c6f5328
commit
bd92d107a2
1 changed files with 5 additions and 4 deletions
|
@ -53,11 +53,12 @@ ynh_systemd_action --service_name="$app" --action="stop" --line_match="Stopped"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
|
|
||||||
# Upgrade from <=0.6.6~ynh1:
|
# Change to head file
|
||||||
if ynh_compare_current_package_version --comparison le --version 0.6.6~ynh1
|
if [ -f "/etc/$app/config.d/server.toml" ]
|
||||||
then
|
then
|
||||||
ynh_delete_file_checksum --file=/etc/"$app"/config.d/server.toml
|
ynh_delete_file_checksum --file="/etc/$app/config.d/server.toml"
|
||||||
ynh_secure_remove --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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue