2018-04-07 12:02:34 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2018-04-24 17:45:19 +02:00
|
|
|
source _common.sh
|
2020-04-27 13:41:00 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
2018-04-07 12:02:34 +02:00
|
|
|
|
|
|
|
#=================================================
|
2024-01-26 22:16:29 +01:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2020-04-27 13:41:00 +02:00
|
|
|
#=================================================
|
2024-01-26 22:16:29 +01:00
|
|
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
2020-04-27 13:41:00 +02:00
|
|
|
|
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"
|
2020-04-27 13:41:00 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove the dedicated systemd config
|
2018-05-04 12:51:16 +02:00
|
|
|
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
|
|
|
|
2018-07-01 10:06:14 +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
|
2020-04-27 13:41:00 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2020-05-30 17:05:03 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed"
|