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
470 B
Text
Raw Normal View History

2015-05-24 23:01:16 +02:00
#!/bin/bash
# Source app helpers
source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
port=$(ynh_app_setting_get $app port)
# Remove Duniter
2016-05-31 19:57:12 +02:00
sudo $app stop
sudo dpkg -r $app
# Remove Duniter service to YunoHost monitoring
sudo yunohost service remove $app
# 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