Add support for ubuntu 20.04

This commit is contained in:
Nico Schottelius 2020-05-01 15:36:20 +02:00
parent 203d4557e7
commit c5154438e1

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# 2013-2019 ungleich glarus ag (cdist at ungleich.ch) # 2013-2020 ungleich glarus ag (cdist at ungleich.ch)
# #
# This file is part of cdist. # This file is part of cdist.
# #
@ -24,6 +24,10 @@ os=$(cat $__global/explorer/os)
osversion=$(cat "$__global/explorer/os_version") osversion=$(cat "$__global/explorer/os_version")
case "$os" in case "$os" in
alpine)
postgres_lib="postgresql-dev"
postgres_server="postgresql"
;;
debian|devuan) debian|devuan)
postgres_lib=libpq-dev postgres_lib=libpq-dev
@ -57,10 +61,22 @@ case "$os" in
postgres_server="postgresql-${postgres_version}" postgres_server="postgresql-${postgres_version}"
;; ;;
alpine) ubuntu)
postgres_lib="postgresql-dev" postgres_lib=libpq-dev
postgres_server="postgresql"
case $osversion in
20.04)
postgres_version=12
;; ;;
*)
echo "Unsupported OS Version: $osversion" >&2
exit 1
;;
esac
postgres_server="postgresql-${postgres_version}"
;;
*) *)
echo "Unsupported OS: $os" >&2 echo "Unsupported OS: $os" >&2
exit 1 exit 1