Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shudeshp committed Nov 8, 2024
1 parent 996958c commit f81e3d8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -66,13 +66,12 @@ spec:
sleep 2;
done;
echo \"Using password: \\\"$POSTGRESQL_PASSWORD\\\"\";

if [ \"\$(cat /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 'postgres';\";
psql -c \"ALTER USER postgres WITH PASSWORD '$POSTGRESQL_PASSWORD';\";
fi
"]

0 comments on commit f81e3d8

Please sign in to comment.