mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:31:48 +00:00
nix: fix direnv hanging when starting postgres (#55156)
See related issues: https://github.com/direnv/direnv/issues/755, https://discourse.nixos.org/t/devenv-sh-starting-postgres/24272/7, https://github.com/shelljs/shelljs/issues/770 Long-standing issue where on first-boot, direnv wouldnt return to the shell, forcing me to kill the shell and then cd into sg/sg again ## Test plan NA/, nix stuff
This commit is contained in:
parent
21c0d57774
commit
bfd4cfbbce
@ -31,5 +31,5 @@ EOF
|
||||
fi
|
||||
if ! pg_isready --quiet; then
|
||||
echo 'Starting postgresql database...'
|
||||
pg_ctl start -l "$PGHOST/log"
|
||||
pg_ctl start -l "$PGHOST/log" 3>&-
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user