libreerp_ynh/scripts/remove

15 lines
320 B
Text
Raw Normal View History

2015-09-14 17:12:17 +02:00
#!/bin/bash
2015-09-14 18:13:54 +02:00
app=odoo
2015-09-14 17:12:17 +02:00
2015-09-14 18:13:54 +02:00
# Remove Odoo
2015-09-14 19:10:35 +02:00
sudo apt-get remove odoo -y
sudo apt-get remove wkhtmltopdf -y
2015-09-14 18:13:54 +02:00
sudo yunohost service remove odoo
2015-09-14 17:12:17 +02:00
# Remove NGINX conf
domain=$(sudo yunohost app setting $app domain)
sudo rm /etc/nginx/conf.d/$domain.d/$app.conf
# Reload
sudo service nginx reload
sudo yunohost app ssowatconf