#!/bin/bash #set -e app=ucoin domain=$(sudo yunohost app setting $app domain) port=$(sudo yunohost app setting $app port) # Remove uCoin ucoind delete rm -Rf /home/admin/.ucoin rm -Rf /home/admin/.config/ucoin/ # Remove uCoin service to YunoHost monitoring sudo yunohost service remove ucoin # Remove proxy_pass sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo service nginx reload # Close opened port sudo yunohost firewall disallow TCP $port