1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00
duniter_ynh/scripts/remove

23 lines
455 B
Text
Raw Normal View History

2015-05-24 23:01:16 +02:00
#!/bin/bash
#set -e
2015-05-24 23:01:16 +02:00
app=ucoin
domain=$(sudo yunohost app setting $app domain)
port=$(sudo yunohost app setting $app port)
2015-12-29 13:11:22 +01:00
# Remove uCoin
2015-12-31 14:41:13 +01:00
ucoind delete
2015-12-29 13:11:22 +01:00
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
2015-05-24 23:01:16 +02:00
# Close opened port
sudo yunohost firewall disallow TCP $port