yunohost-gitea_ynh/scripts/remove

34 lines
841 B
Plaintext
Raw Normal View History

2018-02-25 21:45:24 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
source _common.sh
2020-11-17 23:33:50 +01:00
source /usr/share/yunohost/helpers
2018-02-25 21:45:24 +01:00
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
2018-02-25 21:45:24 +01:00
#=================================================
ynh_script_progression "Removing system configurations related to $app..."
2018-02-25 21:45:24 +01:00
if ynh_hide_warnings yunohost service status "$app" >/dev/null
then
ynh_script_progression "Removing $app service integration..."
yunohost service remove "$app"
fi
2018-02-25 21:45:24 +01:00
ynh_config_remove_systemd
2018-02-25 21:45:24 +01:00
ynh_config_remove_nginx
2018-02-25 21:45:24 +01:00
ynh_config_remove_logrotate
ynh_config_remove_fail2ban
2019-08-01 15:06:04 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2020-12-07 15:11:16 +01:00
ynh_script_progression "Removal of $app completed"