Merge pull request #429 from smwltr/add_os_devuan

Adding suuport for OS Devuan
remotes/origin/4.0
Nico Schottelius 9 years ago
commit 6331bd461f
  1. 5
      cdist/conf/explorer/os
  2. 3
      cdist/conf/explorer/os_version
  3. 2
      cdist/conf/type/__apt_norecommends/manifest
  4. 4
      cdist/conf/type/__hostname/gencode-remote
  5. 2
      cdist/conf/type/__hostname/manifest
  6. 2
      cdist/conf/type/__locale/manifest
  7. 4
      cdist/conf/type/__motd/gencode-remote
  8. 2
      cdist/conf/type/__motd/manifest
  9. 2
      cdist/conf/type/__package/manifest
  10. 2
      cdist/conf/type/__package_update_index/gencode-remote
  11. 2
      cdist/conf/type/__package_upgrade_all/gencode-remote
  12. 2
      cdist/conf/type/__postfix/manifest
  13. 2
      cdist/conf/type/__postfix_master/manifest
  14. 2
      cdist/conf/type/__postfix_postconf/explorer/value
  15. 2
      cdist/conf/type/__postfix_postconf/gencode-remote
  16. 2
      cdist/conf/type/__postfix_reload/gencode-remote
  17. 2
      cdist/conf/type/__start_on_boot/explorer/state
  18. 2
      cdist/conf/type/__timezone/gencode-remote
  19. 2
      cdist/conf/type/__timezone/manifest
  20. 2
      other/archived_types/__autofs/manifest
  21. 2
      other/archived_types/__autofs_reload/gencode-remote

@ -49,6 +49,11 @@ if [ -f /etc/debian_version ]; then
echo debian
exit 0
fi
if [ -f /etc/devuan_version ]; then
echo devuan
exit 0
fi
###
if [ -f /etc/gentoo-release ]; then

@ -33,6 +33,9 @@ case "$($__explorer/os)" in
debian)
cat /etc/debian_version
;;
devuan)
cat /etc/devuan_version
;;
fedora)
cat /etc/fedora-release
;;

@ -22,7 +22,7 @@
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian)
ubuntu|debian|devuan)
# No stinking recommends thank you very much.
# If I want something installed I will do so myself.
__file /etc/apt/apt.conf.d/99-no-recommends \

@ -35,7 +35,7 @@ has_hostnamectl=$(cat "$__object/explorer/has_hostnamectl")
# If everything is ok -> exit
#
case "$os" in
archlinux|debian|suse|ubuntu)
archlinux|debian|suse|ubuntu|devuan)
if [ "$name_config" = "$name_should" -a "$name_running" = "$name_should" ]; then
exit 0
fi
@ -60,7 +60,7 @@ if [ "$has_hostnamectl" ]; then
echo "hostnamectl set-hostname '$name_should'"
else
case "$os" in
archlinux|debian|ubuntu)
archlinux|debian|ubuntu|devuan)
echo "hostname '$name_should'"
echo "printf '%s\n' '$name_should' > /etc/hostname"
;;

@ -34,7 +34,7 @@ not_supported() {
}
case "$os" in
archlinux|debian|suse|ubuntu)
archlinux|debian|suse|ubuntu|devuan)
# handled in gencode-remote
:
;;

@ -26,7 +26,7 @@ os=$(cat "$__global/explorer/os")
case "$os" in
debian)
debian|devuan)
# Debian needs a seperate package
__package locales --state present
;;

@ -22,8 +22,8 @@
os=$(cat "$__global/explorer/os")
case "$os" in
debian|ubuntu)
debian|ubuntu|devuan)
# Debian and Ubuntu need to be updated,
# as seen in /etc/init.d/bootlogs
echo "uname -snrvm > /var/run/motd"

@ -30,7 +30,7 @@ os=$(cat "$__global/explorer/os")
case "$os" in
debian|ubuntu)
debian|ubuntu|devuan)
destination=/etc/motd.tail
;;
*)

@ -32,7 +32,7 @@ else
case "$os" in
amazon|centos|fedora|redhat) type="yum" ;;
archlinux) type="pacman" ;;
debian|ubuntu) type="apt" ;;
debian|ubuntu|devuan) type="apt" ;;
freebsd)
if [ -n "$(cat "$__object/explorer/pkgng_exists")" ]; then
type="pkgng_freebsd"

@ -30,7 +30,7 @@ else
os="$(cat "$__global/explorer/os")"
case "$os" in
amazon|centos|fedora|redhat) type="yum" ;;
debian|ubuntu) type="apt" ;;
debian|ubuntu|devuan) type="apt" ;;
archlinux) type="pacman" ;;
*)
echo "Don't know how to manage packages on: $os" >&2

@ -31,7 +31,7 @@ else
os="$(cat "$__global/explorer/os")"
case "$os" in
amazon|centos|fedora|redhat) type="yum" ;;
debian|ubuntu) type="apt" ;;
debian|ubuntu|devuan) type="apt" ;;
archlinux) type="pacman" ;;
*)
echo "Don't know how to manage packages on: $os" >&2

@ -22,7 +22,7 @@
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian|archlinux|suse|centos)
ubuntu|debian|archlinux|suse|centos|devuan)
__package postfix --state present
;;
*)

@ -22,7 +22,7 @@
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian|archlinux|centos)
ubuntu|debian|archlinux|centos|devuan)
:
;;
*)

@ -22,7 +22,7 @@
os=$("$__explorer/os")
case "$os" in
ubuntu|debian|archlinux|suse|centos)
ubuntu|debian|archlinux|suse|centos|devuan)
:
;;
*)

@ -21,7 +21,7 @@
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian|archlinux|suse|centos)
ubuntu|debian|archlinux|suse|centos|devuan)
:
;;
*)

@ -22,7 +22,7 @@
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian|archlinux|centos)
ubuntu|debian|archlinux|centos|devuan)
echo "postfix reload"
;;
*)

@ -37,7 +37,7 @@ if [ "$init" = 'systemd' ]; then
else
case "$os" in
debian|openwrt)
debian|openwrt|devuan)
state="present"
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
;;

@ -24,7 +24,7 @@ timezone="$__object_id"
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian)
ubuntu|debian|devuan)
echo "echo \"$timezone\" > /etc/timezone"
;;
esac

@ -26,7 +26,7 @@ timezone="$__object_id"
os=$(cat "$__global/explorer/os")
case "$os" in
archlinux|debian|ubuntu)
archlinux|debian|ubuntu|devuan)
__package tzdata
export require="__package/tzdata"
;;

@ -23,7 +23,7 @@
os=$(cat "$__global/explorer/os")
case "$os" in
ubuntu|debian|archlinux)
ubuntu|debian|archlinux|devuan)
__package autofs --state present
__start_on_boot autofs --state present
;;

@ -28,7 +28,7 @@ not_supported() {
}
case "$os" in
ubuntu|debian|archlinux)
ubuntu|debian|archlinux|devuan)
echo "pkill -HUP automount"
;;
*)

Loading…
Cancel
Save