Skip to content

Commit acb688a

Browse files
authored
fix: deal with true location in macos for run-server utility (#1992)
1 parent 963c42d commit acb688a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nix/tools/run-server.sh.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,12 @@ orioledb_config_items() {
295295

296296
# Apply OrioleDB configuration if needed
297297
orioledb_config_items "$VERSION"
298+
299+
# Fix archive_command for macOS (Darwin doesn't have /bin/true, use /usr/bin/true instead)
300+
if [[ "$CURRENT_SYSTEM" == *"-darwin" ]]; then
301+
perl -pi -e "s|archive_command = '/bin/true'|archive_command = '/usr/bin/true'|" "$DATDIR/postgresql.conf"
302+
fi
303+
298304
# Configure Groonga
299305
export GRN_PLUGINS_DIR=$GROONGA/lib/groonga/plugins
300306

0 commit comments

Comments
 (0)