[OpenIndiana-discuss] setting autofs-props/environment variable
Peter Tribble
peter.tribble at gmail.com
Mon Aug 8 16:26:06 UTC 2016
On Mon, Aug 8, 2016 at 5:03 PM, Udo Grabowski (IMK) <udo.grabowski at kit.edu>
wrote:
> Hi,
> does anyone know how to set more than one environment variable
> with sharectl autofs-props/environment ?
>
> Tried several variants (all one-liners):
> sharectl set -p environment=
> ... "ENV1=VAL1 ENV2=VAL2" autofs
> ... "ENV1=VAL1\nENV2=VAL2" autofs
> ... "ENV1=VAL1:ENV2=VAL2" autofs
> ... "ENV1=VAL1^MENV2=VAL2" autofs
>
> where ^M is a literal CR, which was accepted, but gave funny
> output on svcprop and didn't exactly do what I wanted...
> The autofs manpage only says:
>
> AUTOMOUNTD_ENV=<name>=<value>
>
> Environment variables. Each environment variable-value
> pairing must be on its own line. You can specify multi-
> ple such pairings. There are no environment variable
> settings supplied. For example: AUTOMOUNTD_ENV=DAY=TUES
>
That's odd. The autofs manpage on my systems says:
environment=name=value[,name=value]...
Specifies a comma separated list of environment variables. If
an
environment variable has more than one value, those values
should
be separated with a comma, preceded by a backslash as an escape
character ("\,"). For example:
VAR1=val1,VAR2=val2\,val3
So I think you just want commas.
--
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
More information about the openindiana-discuss
mailing list