forked from ungleich-public/cdist
[__hostname] Use __key_value exact_delimiter for shell-like files
This commit is contained in:
parent
77210c349e
commit
7bf203509b
1 changed files with 4 additions and 4 deletions
|
@ -49,21 +49,21 @@ case "$os" in
|
||||||
centos|fedora|redhat|scientific)
|
centos|fedora|redhat|scientific)
|
||||||
__key_value sysconfig-hostname \
|
__key_value sysconfig-hostname \
|
||||||
--file /etc/sysconfig/network \
|
--file /etc/sysconfig/network \
|
||||||
--delimiter '=' \
|
--delimiter '=' --exact_delimiter \
|
||||||
--key HOSTNAME \
|
--key HOSTNAME \
|
||||||
--value "$name_should" --exact_delimiter
|
--value "\"$name_should\""
|
||||||
;;
|
;;
|
||||||
freebsd)
|
freebsd)
|
||||||
__key_value rcconf-hostname \
|
__key_value rcconf-hostname \
|
||||||
--file /etc/rc.conf \
|
--file /etc/rc.conf \
|
||||||
--delimiter '=' \
|
--delimiter '=' --exact_delimiter \
|
||||||
--key 'hostname' \
|
--key 'hostname' \
|
||||||
--value "$name_should"
|
--value "$name_should"
|
||||||
;;
|
;;
|
||||||
netbsd)
|
netbsd)
|
||||||
__key_value rcconf-hostname \
|
__key_value rcconf-hostname \
|
||||||
--file /etc/rc.conf \
|
--file /etc/rc.conf \
|
||||||
--delimiter '=' \
|
--delimiter '=' --exact_delimiter \
|
||||||
--key 'hostname' \
|
--key 'hostname' \
|
||||||
--value "\"$name_should\""
|
--value "\"$name_should\""
|
||||||
# To avoid confusion, ensure that the hostname is only stored once
|
# To avoid confusion, ensure that the hostname is only stored once
|
||||||
|
|
Loading…
Reference in a new issue