#!/bin/bash # Exit and treat unset variables as an error set -u # Source app helpers source /usr/share/yunohost/helpers source functions.sh app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get $app domain) port=$(ynh_app_setting_get $app port) REMOVE_DUNITER # Remove data and conf sudo rm -rf /root/.conf/duniter # Remove Duniter service to YunoHost monitoring sudo yunohost service remove $app # Remove Nginx configuration sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo service nginx reload # Close opened port sudo yunohost firewall disallow TCP $port