fix domain.id, eval instead of echo
This commit is contained in:
parent
4bf85f8839
commit
3302ae6dcc
|
@ -17,7 +17,7 @@ help()
|
||||||
echo " -h Print this help."
|
echo " -h Print this help."
|
||||||
echo " -d Domain to be modified."
|
echo " -d Domain to be modified."
|
||||||
echo " -l LIMIT Mailbox limit - the maximum number of mailboxes under this domain."
|
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."
|
echo " -s STATUS 1 for enabled, 0 for disabled. Default is in db structure and is normally set to 1."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
@ -82,9 +82,8 @@ fi
|
||||||
if [ -n "$dbset" ]; then
|
if [ -n "$dbset" ]; then
|
||||||
|
|
||||||
# build query
|
# build query
|
||||||
dbcmd="mysql --defaults-extra-file=$MYSQL_CONNECTION_INFO_FILE -e 'UPDATE vm_domains SET $dbset WHERE domain.id=\"$domain_id\";'"
|
dbcmd="mysql --defaults-extra-file=$MYSQL_CONNECTION_INFO_FILE -e 'UPDATE vm_domains SET $dbset WHERE id=\"$domain_id\";'"
|
||||||
# eval $dbcmd
|
eval $dbcmd
|
||||||
echo $dbcmd
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user