From cf9cc8aaf859fe400b7d7c186cfb61dbdef094b1 Mon Sep 17 00:00:00 2001 From: scith Date: Sun, 20 Sep 2015 08:34:07 +0200 Subject: [PATCH] remove --- scripts/remove | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 971f0b4..02da2e7 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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