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

24 lines
No EOL
657 B
Bash

#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# REMOVE SUPERVISOR & SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..."
supervisorctl stop ${app}
supervisorctl remove ${app}
ynh_secure_remove "/etc/supervisor/conf.d/${app}.conf"
supervisorctl reread
ynh_remove_nginx_config
ynh_remove_logrotate
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last