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 e1815c7 commit 6d11c7dCopy full SHA for 6d11c7d
nix/tools/run-server.sh.in
@@ -213,7 +213,17 @@ fi
213
214
# Copy configuration files
215
echo "NOTE: patching postgresql.conf files"
216
-cp "$PG_HBA_FILE" "$DATDIR/pg_hba.conf"
+if [ "$VERSION" = "15" ]; then
217
+ cp $(dirname "$PG_HBA_FILE")/pg_hba.conf_15* "$DATDIR/pg_hba.conf"
218
+else
219
+ cp "${PG_HBA_FILE}" "$DATDIR/pg_hba.conf"
220
+ # copy extra hba_*.conf files over
221
+ extra_hba_files=( ${PG_HBA_FILE%pg_hba.conf}pg_hba*.conf* )
222
+ for f in "${extra_hba_files[@]}"; do
223
+ base=$(basename "$f")
224
+ cp "$f" "$DATDIR/${base%%.conf*}.conf"
225
+ done
226
+fi
227
cp "$PG_IDENT_FILE" "$DATDIR/pg_ident.conf"
228
cp "$READREPL_CONFIG_FILE" "$DATDIR/read-replica.conf"
229
mkdir -p "$DATDIR/extension-custom-scripts"
0 commit comments