diff --git a/seed/postgresql-client/dictionaries/23_postgresql.xml b/seed/postgresql-client/dictionaries/23_postgresql.xml index 9afde85..58dfcb6 100644 --- a/seed/postgresql-client/dictionaries/23_postgresql.xml +++ b/seed/postgresql-client/dictionaries/23_postgresql.xml @@ -6,6 +6,7 @@ /etc/pki/ca-trust/source/anchors/ca_PostgreSQL.crt /etc/pki/tls/certs/postgresql.crt /etc/pki/tls/private/postgresql.key + /sysusers.d/0postgresqlclient.conf @@ -41,5 +42,9 @@ pg_client_username pg_client_database + + Debian + postgresql_debian + diff --git a/seed/postgresql-client/manual/image/preinstall/postgresql_client.sh b/seed/postgresql-client/manual/image/preinstall/postgresql_client.sh index f5d15a1..1072cd9 100644 --- a/seed/postgresql-client/manual/image/preinstall/postgresql_client.sh +++ b/seed/postgresql-client/manual/image/preinstall/postgresql_client.sh @@ -1 +1,5 @@ -PKG="$PKG postgresql" +if [ "$INSTALL_TOOL" = "dnf" ]; then + PKG="$PKG postgresql" +else + PKG="$PKG postgresql-client" +fi diff --git a/seed/postgresql-client/templates/sysuser-postgresql-client.conf b/seed/postgresql-client/templates/sysuser-postgresql-client.conf new file mode 100644 index 0000000..8d93c42 --- /dev/null +++ b/seed/postgresql-client/templates/sysuser-postgresql-client.conf @@ -0,0 +1,4 @@ +g ssl-cert 108 +g postgres 109 +u postgres 104:109 "PostgreSQL administrator" /var/lib/postgresql /bin/bash +m postgres ssl-cert