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:
parent
5eb5ea793f
commit
321e21b46e
1 changed files with 16 additions and 0 deletions
|
@ -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"
|
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
|
# INSTALL NODEJS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue