Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Engine
Component: Configure
Branches: master
tools/configure
will run and report proposed configuration changes ... but doesn't seem to have any way to trigger a save.
the
-save
option is the equivalent of setting -wizard Save -action save, which overrides a requested wizard. What I'm trying to do document how to configure email from the command line, and it doesn't work.
tools/configure -save -set {WebMasterEmail}='user@email.com'
tools/configure -save -set {SMTP}{MAILHOST}='smtpserver.email.com'
tools/configure -save -set {SMTP}{Username}='userid'
tools/configure -save -set {SMTP}{Password}='password'
tools/configure -wizard AutoConfigureEmail -method autoconfigure
which reports the necessary settings:
'changes' => {
'{SMTP}{MAILHOST}' => 'smtpserver.email.com:587',
'{SMTP}{SENDERHOST}' => 'serverhost.mydomain.com',
'{Email}{MailMethod}' => 'Net::SMTP (STARTTLS)',
'{EnableEmail}' => 1
}
But if I use the -save option in combination with the wizard, it overrides the wizard, and just reports no changes necessary.
I've tried chaining wizards in tools/configure, but the changes hash seems to be reset, and still nothing gets saved.
--
GeorgeClark - 11 Jan 2015