Hi Diego,
On 16/06/2017 18:37, Diego Rondini wrote:
> Hi SWUpdaters,
>
> I'd like to specify suricatta parameters in the swupdate.cfg, as shown in the
> example file here:
>
https://github.com/sbabic/swupdate/blob/master/examples/configuration/
> swupdate.cfg#L107
>
> Unfortunately it seems id, tenant and url need to be passed as command line
> arguments anyway to activate the "suricatta mode".
>
> What I mean is that I'd like to start swupdate just with "swupdate -f
> swupdate.cfg" and have every option decided by the config file.
The options are set, but you have to pass which modules (downloader /
webserver /backend) must be started.
>
> Am I missing something
Yes.
You have to use:
swupdate -f swupdate.cfg -u ""
The empty string says to start suricatta, but all parameters are taken
from the configuration file. Command line parameters overwrite the
values in swupdate.cfg, that means you can also:
swupdate -f swupdate.cfg -u "-t pippo"
and this overwrites the value in the .cfg.
You can decide to start SWUpdate with more as one module, for example:
swupdate -f swupdate.cfg -u "" -w ""
This starts both suricatta and the webserver.
> or is that area still work-in-progress?
No.
Best regards,
Stefano
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================