Skip to content

Commit 16b33db

Browse files
Install libpq-dev with postgresql-client (#7)
The libpq-dev library works hand-in-hand with the postgresql-client package and is necessary for proper function in Rails apps.
2 parents 7f2f2dd + 80df424 commit 16b33db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/postgresql-client/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fi
1212

1313
if [ "${POSTGRESQL_VERSION}" = "os-provided" ]; then
1414
apt update --yes
15-
apt install --no-install-recommends --yes postgresql-client
15+
apt install --no-install-recommends --yes libpq-dev postgresql-client
1616

1717
exit 0
1818
fi
@@ -39,7 +39,7 @@ curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://
3939
sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt '${VERSION_CODENAME}'-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
4040

4141
apt update --yes
42-
apt install --no-install-recommends --yes postgresql-client-${POSTGRESQL_VERSION}
42+
apt install --no-install-recommends --yes libpq-dev postgresql-client-${POSTGRESQL_VERSION}
4343

4444
if [ -n "${curl_installed}" ]; then
4545
apt purge curl --autoremove --yes

0 commit comments

Comments
 (0)