[__hostname] Add support for Void Linux

remotes/origin/6.1
Dennis Camera 6 years ago
parent cbae534af5
commit b9571a2bbd
  1. 2
      cdist/conf/type/__hostname/gencode-remote
  2. 2
      cdist/conf/type/__hostname/manifest

@ -66,7 +66,7 @@ in
"&& hostnamectl set-hostname '$name_should'" \
"|| hostname '$name_should'"
;;
centos|fedora|redhat|scientific|freebsd|netbsd|gentoo)
centos|fedora|redhat|scientific|freebsd|netbsd|gentoo|void)
echo "hostname '$name_should'"
;;
macosx)

@ -60,7 +60,7 @@ fi
case $os
in
alpine|debian|devuan|ubuntu)
alpine|debian|devuan|ubuntu|void)
echo "$name_should" \
| __file /etc/hostname --source -
;;

Loading…
Cancel
Save