libreerp_ynh/scripts/remove
2015-09-14 18:13:54 +02:00

15 lines
No EOL
314 B
Bash

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