We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfb395 commit 976479dCopy full SHA for 976479d
1 file changed
common/script/updateDatasource.sh
@@ -111,11 +111,15 @@ else
111
case $DB_TYPE in
112
*postgres* )
113
if [ -n "$DB_SSL_MODE" ]
114
- then
115
- echo "postgres ssl: remove password from /config/datasource.xml"
116
- sed -i '/odmpwd/d' /config/datasource.xml
117
- fi
118
- ;;
+ then
+ if [ -n "$DB_DUAL_AUTHENTICATION_MODE" ] && [ "$DB_DUAL_AUTHENTICATION_MODE" == "true" ]
+ echo "keep password authentication for postgres ssl as DB_DUAL_AUTHENTICATION_MODE is set"
+ else
+ echo "postgres ssl: remove password from /config/datasource.xml"
119
+ sed -i '/odmpwd/d' /config/datasource.xml
120
+ fi
121
122
+ ;;
123
esac
124
fi
125
0 commit comments