1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/endi_ynh.git synced 2024-09-03 18:35:54 +02:00

Migrate config file

This commit is contained in:
Salamandar 2024-07-13 16:15:22 +02:00
parent 5eb5ea793f
commit 321e21b46e

View file

@ -14,6 +14,22 @@ ynh_script_progression --message="Stopping $app's systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$app/logfile.log"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -d "$install_dir/endi" ]; then
ynh_secure_remove --file="$install_dir/endi"
fi
if [ -f "$install_dir/endi.ini" ]; then
ynh_backup_if_checksum_is_different --file="$install_dir/endi.ini"
mv "$install_dir/endi.ini" "$install_dir/caerp.ini"
ynh_delete_file_checksum --file="$install_dir/endi.ini"
ynh_store_file_checksum --file="$install_dir/caerp.ini"
fi
#=================================================
# INSTALL NODEJS
#=================================================