forked from ungleich-public/cdist
[__hostname] Add support for Solaris
This commit is contained in:
parent
fbe9fc4204
commit
88947d45b3
2 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,9 @@ in
|
|||
macosx)
|
||||
echo "scutil --set HostName '$name_should'"
|
||||
;;
|
||||
solaris)
|
||||
echo "uname -S '$name_should'"
|
||||
;;
|
||||
suse)
|
||||
echo 'hostname -F /etc/HOSTNAME'
|
||||
;;
|
||||
|
|
|
@ -136,6 +136,9 @@ in
|
|||
# and set it as the running hostname on boot.
|
||||
echo "$name_should" | __file /etc/HOSTNAME --source -
|
||||
;;
|
||||
solaris)
|
||||
echo "$name_should" | __file /etc/nodename --source -
|
||||
;;
|
||||
suse)
|
||||
# We write into /etc/HOSTNAME for backwards-compatibility. Modern SuSE
|
||||
# has hostnamectl anyway and symlinks /etc/HOSTNAME to /etc/hostname.
|
||||
|
|
Loading…
Reference in a new issue