#!/bin/bash #================================================= # GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= ynh_script_progression --message="Loading installation settings..." --weight=2 app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # STANDARD REMOVE #================================================= # REMOVE SERVICE FROM ADMIN PANEL #================================================= # Remove a service from the admin panel, added by `yunohost service add` if yunohost service status $app >/dev/null 2>&1 then ynh_script_progression --message="Removing $app service..." yunohost service remove $app fi #================================================= # REMOVE SHELLINABOX #================================================= ynh_script_progression --message="Removing shellinabox..." --weight=20 ynh_package_autopurge shellinabox #================================================= # REMOVE NGINX CONFIGURATION #================================================= ynh_script_progression --message="Removing nginx web server configuration..." # Remove the dedicated nginx config ynh_remove_nginx_config #================================================= # END OF SCRIPT #================================================= ynh_script_progression --message="Removal of $app completed" --last