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

36 lines
1,012 B
Text
Raw Normal View History

#!/bin/bash
2017-10-06 16:35:33 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
2023-04-02 22:08:59 +02:00
# REMOVE SYSTEM CONFIGURATIONS
2017-10-06 16:35:33 +02:00
#=================================================
2023-04-02 22:08:59 +02:00
# REMOVE SYSTEMD SERVICE
2017-10-06 16:35:33 +02:00
#=================================================
2023-04-02 22:08:59 +02:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2017-10-06 16:35:33 +02:00
2020-11-03 15:33:26 +01:00
if ynh_exec_warn_less yunohost service status $app >/dev/null
2017-10-06 16:35:33 +02:00
then
2020-11-03 16:07:39 +01:00
ynh_script_progression --message="Removing $app service integration..." --weight=2
2017-10-06 16:35:33 +02:00
yunohost service remove $app
fi
2020-11-03 15:33:26 +01:00
ynh_remove_systemd_config
2021-09-08 10:28:31 +02:00
ynh_remove_nodejs
2017-10-06 16:35:33 +02:00
ynh_remove_nginx_config
#=================================================
2020-11-03 15:33:26 +01:00
# END OF SCRIPT
2017-10-06 16:35:33 +02:00
#=================================================
2020-11-03 16:07:39 +01:00
ynh_script_progression --message="Removal of $app completed" --last