From eef27043eda11262e55d4b14fe4f7b2ad196b97a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 18 Sep 2014 15:14:59 +0200 Subject: [PATCH] Get tenant's schema name using get_tenant_by_domain --- debian/portail-citoyen2.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/portail-citoyen2.init b/debian/portail-citoyen2.init index 8a01e21..ba5af2f 100644 --- a/debian/portail-citoyen2.init +++ b/debian/portail-citoyen2.init @@ -194,7 +194,7 @@ case "$1" in ;; create-tenant) shift - TENANT=$1 + TENANT=`su $USER -p -c "python $MANAGE_SCRIPT get_tenant_by_domain \"$1\""` log_daemon_msg "Creating tenant" "$TENANT" if [ "x$TENANT_BASE" == "x" ]; then log_failure_msg "TENANT_BASE is not set in /etc/default/$NAME"