mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
24 lines
532 B
Bash
Executable file
24 lines
532 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#set -e
|
|
|
|
app=ucoin
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
port=$(sudo yunohost app setting $app port)
|
|
|
|
# Remove uCoin
|
|
UCOIN_DIR="/home/admin/.ucoin"
|
|
[ -s "$UCOIN_DIR/ucoin.sh" ] && . "$UCOIN_DIR/ucoin.sh"
|
|
ucoind stop
|
|
rm -Rf $UCOIN_DIR
|
|
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
|