Add support for ubuntu 20.04
This commit is contained in:
parent
203d4557e7
commit
c5154438e1
1 changed files with 21 additions and 5 deletions
24
manifest
24
manifest
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue