Get tenant's schema name using get_tenant_by_domain
This commit is contained in:
parent
dca8767b37
commit
eef27043ed
|
@ -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"
|
||||
|
|
Reference in New Issue