2015-05-24 23:01:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-12-02 21:41:55 +01:00
|
|
|
#set -e
|
2015-05-24 23:01:16 +02:00
|
|
|
|
2016-05-02 15:08:31 +02:00
|
|
|
app=duniter
|
2015-12-25 21:33:56 +01:00
|
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
|
|
port=$(sudo yunohost app setting $app port)
|
|
|
|
|
2016-05-02 15:08:31 +02:00
|
|
|
# Remove Duniter
|
|
|
|
source ~/.bashrc
|
|
|
|
$app stop
|
2016-05-02 16:20:55 +02:00
|
|
|
sudo dpkg -r $app
|
2016-05-02 15:08:31 +02:00
|
|
|
#rm -Rf $DUNITER_DIR
|
|
|
|
#rm -Rf /home/admin/.config/$app/
|
2015-12-02 21:41:55 +01:00
|
|
|
|
2016-05-02 15:08:31 +02:00
|
|
|
# Remove Duniter service to YunoHost monitoring
|
|
|
|
sudo yunohost service remove $app
|
2015-12-02 21:41:55 +01:00
|
|
|
|
2015-12-25 21:33:56 +01:00
|
|
|
# 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
|