1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/collabora_ynh.git synced 2024-09-03 18:16:25 +02:00

Update upgrade

This commit is contained in:
Taekiro 2021-12-21 09:59:10 +01:00 committed by GitHub
parent aa753884fe
commit 2ad7c49b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,25 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# REMOVE OLD SERVICE INTEGRATION IN YUNOHOST
#=================================================
# Remove the old service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status "loolwsd" >/dev/null
then
ynh_script_progression --message="Removing loolwsd service integration..." --weight=1
yunohost service remove "loolwsd"
fi
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_script_progression --message="Stopping and removing the old systemd service..." --weight=1
# Remove the dedicated systemd config
ynh_remove_systemd_config --service="loolwsd"
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -61,8 +80,6 @@ ynh_abort_if_errors
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=5
ynh_systemd_action --service_name="loolwsd" --action="stop" --log_path="systemd" --line_match="Stopped Collabora Online WebSocket Daemon"
ynh_systemd_action --service_name="loolwsd" --action="disable" --log_path="systemd"
ynh_systemd_action --service_name="coolwsd" --action="stop" --log_path="systemd" --line_match="Stopped Collabora Online WebSocket Daemon"
#=================================================