How to set a bool settings via CLI?

I would like to disable smtp.allow_ipv6, maybe it helps for: Setup smtp relay?

But how to set bools?!?

root@YunoHost:~# yunohost settings set smtp.allow_ipv6 False
usage: yunohost {settings} ...
                [-h] [--output-as {json,plain,none}] [--debug] [--quiet]
                [--timeout ==SUPPRESS==] [-v]
yunohost: error: unrecognized arguments: False

also tried:

root@YunoHost:~# yunohost settings set smtp.allow_ipv6 0
usage: yunohost {settings} ...
                [-h] [--output-as {json,plain,none}] [--debug] [--quiet]
                [--timeout ==SUPPRESS==] [-v]
yunohost: error: unrecognized arguments: 0

It also seems to me, that this “usage” output is not for “set” sub command, isn’t it?

The help doesn’t help:

usage: yunohost settings set key [-h] [-v VALUE]

set an entry value in the settings

positional arguments:
  key                   Settings key

optional arguments:
  -h, --help            show this help message and exit
  -v VALUE, --value VALUE
                        new value

You have to prefix the value with -v like the help suggests

:see_no_evil: Yes, that’s it:

root@YunoHost:~# yunohost settings set smtp.allow_ipv6 -v False
Success! Configuration updated for 'postfix'

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.