Skip to content

Commit

Permalink
relay dump script: use set -uo pipefail
Browse files Browse the repository at this point in the history
 to avoid creating empty topology files on schema changes
  • Loading branch information
jbgi authored and johnalotoski committed Jul 8, 2020
1 parent 9fe06cb commit 2368348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/explorer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ in {
in {
path = [ config.services.postgresql.package jq netcat ];
script = ''
set -uo pipefail
cd $STATE_DIRECTORY
for r in $(psql -t < ${extract_relays_sql} | jq -c '.[]'); do
addr=$(echo $r | jq -r '.addr')
Expand Down

0 comments on commit 2368348

Please sign in to comment.