Skip to content

Commit

Permalink
minor lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shudeshp authored and openshift-merge-bot[bot] committed Nov 8, 2024
1 parent 26f9585 commit 8585e8f
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,19 @@ spec:
requests:
cpu: 500m
memory: 2Gi
lifecycle:
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "
until pg_isready; do
echo 'Waiting for PostgreSQL to start...';
sleep 2;
done;
echo \"Using password: \\\"$POSTGRESQL_PASSWORD\\\"\";
if [ \"\$(cat /proc/sys/crypto/fips_enabled)\" -eq 1 ]; then
if [[ -f /proc/sys/crypto/fips_enabled && $(< /proc/sys/crypto/fips_enabled) -eq 1 ]]; then
echo 'password_encryption = scram-sha-256' >> $PGDATA/postgresql.conf;
echo 'host all all 0.0.0.0/0 scram-sha-256' >> $PGDATA/pg_hba.conf;
pg_ctl reload;
psql -c \"ALTER SYSTEM SET password_encryption TO 'scram-sha-256';\";
psql -c \"SELECT pg_reload_conf();\";
psql -c \"ALTER USER postgres WITH PASSWORD '$POSTGRESQL_PASSWORD';\";
fi
"]
psql -c \"ALTER USER $POSTGRESQL_USER WITH PASSWORD '$POSTGRESQL_PASSWORD';\";
fi"]

0 comments on commit 8585e8f

Please sign in to comment.