You are here: Foswiki>Tasks Web>Item13203 (11 Jan 2015, GeorgeClark)Edit Attach

Item13203: Need way to save changes made by wizard, in tools/configure

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Engine
Component: Configure
Branches: master
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
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

 

ItemTemplate edit

Summary Need way to save changes made by wizard, in tools/configure
ReportedBy GeorgeClark
Codebase trunk
SVN Range
AppliesTo Engine
Component Configure
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins distro:1e7304330f0b
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:1e7304330f0b
ItemBranchCheckins
Release01x01Checkins
Topic revision: r2 - 11 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy