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

40 lines
1 KiB
Text
Raw Normal View History

2014-01-07 21:50:21 +01:00
#!/bin/bash
2020-10-20 13:46:23 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
2023-06-27 10:03:42 +02:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2020-10-20 13:46:23 +02:00
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
2023-09-09 11:34:59 +02:00
ynh_script_progression --message="Removing $app service integration..." --weight=2
2020-10-20 13:46:23 +02:00
yunohost service remove $app
fi
ynh_remove_systemd_config
2021-11-20 23:15:50 +01:00
ynh_remove_logrotate
2021-05-31 06:59:42 +02:00
ynh_remove_nodejs
2021-10-01 13:10:41 +02:00
ynh_redis_remove_db "$redis_db"
2020-10-20 13:46:23 +02:00
ynh_remove_nginx_config
2014-01-10 14:20:40 +01:00
2020-10-20 13:46:23 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2023-09-09 09:03:21 +02:00
ynh_script_progression --message="Removal of $app completed" --last