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

40 lines
1 KiB
Text
Raw Normal View History

2018-04-07 12:02:34 +02:00
#!/bin/bash
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
2018-04-07 12:02:34 +02:00
#=================================================
2024-01-26 22:16:29 +01:00
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
2024-01-26 22:16:29 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2021-04-10 01:48:01 +02:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-01-26 22:16:29 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
2018-04-07 12:02:34 +02:00
2022-06-03 01:08:42 +02:00
# Remove the app-specific logrotate config
ynh_remove_logrotate
2024-01-26 22:16:29 +01:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2018-04-07 12:02:34 +02:00
ynh_redis_remove_db "$redis_db"
2022-07-27 04:15:08 +02:00
ynh_remove_nodejs
2018-04-07 12:02:34 +02:00
2024-01-26 22:16:29 +01:00
ynh_remove_ruby
#=================================================
# END OF SCRIPT
#=================================================
2020-05-30 17:05:03 +02:00
ynh_script_progression --message="Removal of $app completed"