2015-05-24 23:01:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-05-31 15:26:06 +02:00
|
|
|
# Source app helpers
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2016-05-02 15:08:31 +02:00
|
|
|
app=duniter
|
2016-05-31 15:26:06 +02:00
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
|
port=$(ynh_app_setting_get $app port)
|
2015-12-25 21:33:56 +01:00
|
|
|
|
2016-05-02 15:08:31 +02:00
|
|
|
# Remove Duniter
|
2016-05-31 19:57:12 +02:00
|
|
|
sudo $app stop
|
2016-05-02 16:20:55 +02:00
|
|
|
sudo dpkg -r $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
|