From: Nick J. <ni...@cr...> - 2008-05-01 12:10:32
|
Hi Jamie, Thanks for that tip. One thing I've noticed is that when I make a custom field that is a "Text" field, the value is stored fine, however when I use the "Option" field (which is yes/no true/false 1/0 I assume?), setting it to a Yes does not seem to save, ie. when I go back to the virtual server, and edit it, the "Text" field shows the value I set, but all the "Option" fields are set back to No. Am I using this incorrectly or somehow misunderstanding it's purpose? Thanks for any help. Nick On Wed, 2008-04-30 at 09:52 -0700, Jamie Cameron wrote: > On 30/Apr/2008 09:05 Nick Jennings wrote .. > > Hi Everyone, > > > > I am trying to incorporate a custom field into my virtualmin setup, > > though I need to be able to set this field from the command line script. > > Is there currently a way to do this? > > There's two ways you could do it : > > 1) If using Virtualmin pro, the modify-custom.pl command-line script > (usually in /usr/libexec/webmin/virtual-server or /usr/share/webmin/virtual-server) > can set a custom field for a domain, like : > ./modify-custom.pl --domain foo.com --set address "13 Foo St" > > 2) You can add to the domain's file in /etc/webmin/virtual-server/domains > directly, with shell code like : > domainid=`./list-domains.pl --domain foo.com --id-only` > echo "field_address=13 Foo St" >>/etc/webmin/virtual-server/domains/$id > > - Jamie > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |