libreerp_ynh/scripts/remove
2015-09-14 19:10:35 +02:00

15 lines
No EOL
320 B
Bash

#!/bin/bash
app=odoo
# Remove Odoo
sudo apt-get remove odoo -y
sudo apt-get remove wkhtmltopdf -y
sudo yunohost service remove odoo
# 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