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