send_ynh/scripts/remove

28 lines
655 B
Plaintext
Raw Normal View History

2021-08-25 17:42:59 +02:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
2024-06-17 22:10:05 +02:00
# REMOVE SYSTEM CONFIGURATIONS
2021-08-25 17:42:59 +02:00
#=================================================
ynh_script_progression "Removing system configurations related to $app..."
2021-08-25 17:42:59 +02:00
2024-11-07 08:58:26 +01:00
if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
2024-01-17 01:43:15 +01:00
yunohost service remove "$app"
2021-08-25 17:42:59 +02:00
fi
ynh_config_remove_systemd
2021-08-25 17:42:59 +02:00
2021-08-26 07:48:47 +02:00
ynh_redis_remove_db "$redis_db"
ynh_config_remove_nginx
2021-08-25 17:42:59 +02:00
ynh_nodejs_remove
2022-06-29 02:17:46 +02:00
2021-08-25 17:42:59 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Removal of $app completed"