[__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)
|
||||
__key_value sysconfig-hostname \
|
||||
--file /etc/sysconfig/network \
|
||||
--delimiter '=' \
|
||||
--delimiter '=' --exact_delimiter \
|
||||
--key HOSTNAME \
|
||||
--value "$name_should" --exact_delimiter
|
||||
--value "\"$name_should\""
|
||||
;;
|
||||
freebsd)
|
||||
__key_value rcconf-hostname \
|
||||
--file /etc/rc.conf \
|
||||
--delimiter '=' \
|
||||
--delimiter '=' --exact_delimiter \
|
||||
--key 'hostname' \
|
||||
--value "$name_should"
|
||||
;;
|
||||
netbsd)
|
||||
__key_value rcconf-hostname \
|
||||
--file /etc/rc.conf \
|
||||
--delimiter '=' \
|
||||
--delimiter '=' --exact_delimiter \
|
||||
--key 'hostname' \
|
||||
--value "\"$name_should\""
|
||||
# To avoid confusion, ensure that the hostname is only stored once
|
||||
|
|
Loading…
Reference in a new issue