1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00
This commit is contained in:
scith 2015-09-20 08:34:07 +02:00
parent dcc56bba1d
commit cf9cc8aaf8

View file

@ -1,10 +1,11 @@
#!/bin/bash
app=odoo
domain=$(sudo yunohost app setting $app domain)
database=${domain//./-}
instance=$(sudo yunohost app setting $app instance)
# Remove database
sudo -u postgres dropdb ${domain//./-}
sudo -u postgres dropdb $database
# If removing master instance, remove Odoo.
if [ "$instance" = "master" ]; then