Skip to content

Commit 2f3d6fd

Browse files
fix(CS): read db_libpq.env file also for preinstall checks
Refs: XRDSD-507
1 parent 262d09f commit 2f3d6fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/packages/src/xroad/ubuntu/generic/xroad-center.preinst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ if [ "$1" = "upgrade" ]; then
1212
source /usr/share/xroad/scripts/_read_cs_db_properties.sh
1313
prepare_db_props
1414

15+
# Reading custom libpq ENV variables
16+
if [ -f /etc/xroad/db_libpq.env ]; then
17+
source /etc/xroad/db_libpq.env
18+
fi
19+
1520
psql_query() {
1621
local query=$1
1722
PGDATABASE="$db_database" PGUSER="$db_user" PGPASSWORD="$db_password" \

0 commit comments

Comments
 (0)