@@ -34,10 +34,10 @@ start_postgres() {
3434 # Start the server
3535 pg_ctl start -D " $DATDIR " -l " $LOG_FILE " \
3636 -o " --config-file=$DATDIR /postgresql.conf -p $PORTNO -k $DATDIR /tmp"
37-
37+
3838 # Give it a moment to write logs
3939 sleep 1
40-
40+
4141 # Check server status and logs
4242 if ! pg_ctl status -D " $DATDIR " ; then
4343 echo " PostgreSQL failed to start. Full logs:"
@@ -192,7 +192,7 @@ export LC_CTYPE=en_US.UTF-8
192192export KEY_FILE=" $DATDIR /pgsodium.key"
193193echo " KEY_FILE: $KEY_FILE "
194194echo " KEY_FILE contents:"
195- cat " $KEY_FILE "
195+ cat " $KEY_FILE "
196196
197197echo " PGSODIUM_GETKEY_SCRIPT: $PGSODIUM_GETKEY_SCRIPT "
198198echo " NOTE: using port $PORTNO for server"
@@ -218,7 +218,7 @@ if [ "$VERSION" = "15" ]; then
218218else
219219 cp " ${PG_HBA_FILE} " " $DATDIR /pg_hba.conf"
220220 # copy extra hba_*.conf files over
221- extra_hba_files=( ${PG_HBA_FILE% pg_hba.conf} pg_hba * .conf* )
221+ extra_hba_files=( ${PG_HBA_FILE% pg_hba.conf} pg_hba_ * .conf* )
222222 for f in " ${extra_hba_files[@]} " ; do
223223 base=$( basename " $f " )
224224 cp " $f " " $DATDIR /${base%% .conf* } .conf"
@@ -270,16 +270,16 @@ orioledb_config_items() {
270270 # macOS specific configuration
271271 echo " macOS detected, applying macOS specific configuration"
272272 ls -la " $DATDIR "
273-
273+
274274 # Use perl instead of sed for macOS
275275 perl -pi -e ' s/ timescaledb,//g' " $DATDIR /postgresql.conf"
276276 perl -pi -e ' s/db_user_namespace = off/#db_user_namespace = off/g' " $DATDIR /postgresql.conf"
277-
277+
278278 perl -pi -e ' s/ timescaledb,//g' " $DATDIR /supautils.conf"
279279 perl -pi -e ' s/ plv8,//g' " $DATDIR /supautils.conf"
280280 perl -pi -e ' s/ pgjwt,//g' " $DATDIR /supautils.conf"
281281 perl -pi -e ' s/(shared_preload_libraries\s*=\s*' \' ' .*?)' \' ' /\1, orioledb' \' ' /' " $DATDIR /postgresql.conf"
282-
282+
283283 echo " default_table_access_method = 'orioledb'" >> " $DATDIR /postgresql.conf"
284284 elif [[ " $VERSION " == " 17" && " $CURRENT_SYSTEM " != " aarch64-darwin" ]]; then
285285 echo " non-macos pg 17 conf"
@@ -307,7 +307,7 @@ export GRN_PLUGINS_DIR=$GROONGA/lib/groonga/plugins
307307
308308# Start postgres
309309mkdir -p " $DATDIR /tmp"
310- chmod 1777 " $DATDIR /tmp"
310+ chmod 1777 " $DATDIR /tmp"
311311start_postgres " daemon"
312312
313313# Wait for PostgreSQL to start
@@ -387,6 +387,6 @@ stop_postgres
387387# Step 4: Restart PostgreSQL in the foreground (with log output visible) or as a daemon
388388if [ " $DAEMONIZE " = true ]; then
389389 start_postgres " daemon"
390- else
390+ else
391391 start_postgres " foreground"
392392fi
0 commit comments