From 3302ae6dcc5319546b5a6cce0fec7ff543a2c925 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Fri, 15 Oct 2021 15:21:51 -0700 Subject: [PATCH] fix domain.id, eval instead of echo --- bin/vmail-domains-mod.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/vmail-domains-mod.sh b/bin/vmail-domains-mod.sh index 0ef0b59..8f99efe 100755 --- a/bin/vmail-domains-mod.sh +++ b/bin/vmail-domains-mod.sh @@ -17,7 +17,7 @@ help() echo " -h Print this help." echo " -d Domain to be modified." echo " -l LIMIT Mailbox limit - the maximum number of mailboxes under this domain." - echo " -q QUOTA Mailbox Quota Default - default quota for new mailboxes under this domain." + echo " -q QUOTA Mailbox Quota Default in GB - default quota for new mailboxes under this domain." echo " -s STATUS 1 for enabled, 0 for disabled. Default is in db structure and is normally set to 1." exit } @@ -82,9 +82,8 @@ fi if [ -n "$dbset" ]; then # build query - dbcmd="mysql --defaults-extra-file=$MYSQL_CONNECTION_INFO_FILE -e 'UPDATE vm_domains SET $dbset WHERE domain.id=\"$domain_id\";'" -# eval $dbcmd - echo $dbcmd + dbcmd="mysql --defaults-extra-file=$MYSQL_CONNECTION_INFO_FILE -e 'UPDATE vm_domains SET $dbset WHERE id=\"$domain_id\";'" + eval $dbcmd else