|
@@ -46,6 +46,10 @@ if [ ."$database_repo" = ."official" ]; then
|
|
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" > /etc/apt/sources.list.d/postgresql.list
|
|
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
|
|
fi
|
|
|
+ if [ ."$os_codename" = ."bookworm" ]; then
|
|
|
+ echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main" > /etc/apt/sources.list.d/postgresql.list
|
|
|
+ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
|
|
+ fi
|
|
|
if [ ."$database_host" = ."127.0.0.1" ] || [ ."$database_host" = ."::1" ] ; then
|
|
|
if [ ."$database_version" = ."latest" ]; then
|
|
|
apt-get install -y sudo postgresql
|