#!/bin/bash source _common.sh source /usr/share/yunohost/helpers #================================================= # STOP AND REMOVE SERVICE #================================================= ynh_script_progression "Stopping and removing the systemd service..." # Remove the dedicated systemd config ynh_config_remove_systemd #================================================= # REMOVE LOGROTATE CONFIGURATION #================================================= ynh_script_progression "Removing logrotate configuration..." # Remove the app-specific logrotate config ynh_config_remove_logrotate #================================================= # REMOVE NGINX CONFIGURATION #================================================= ynh_script_progression "Removing NGINX web server configuration..." # Remove the dedicated NGINX config ynh_config_remove_nginx #================================================= # REMOVE DEPENDENCIES #================================================= ynh_script_progression "Removing dependencies..." # Remove metapackage and its dependencies #================================================= # REMOVE SERVICE IN YUNOHOST #================================================= ynh_script_progression "Removing service in YunoHost..." yunohost service remove $app #================================================= # END OF SCRIPT #================================================= ynh_script_progression "Removal of $app completed"