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 " -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user