From c0985911f262b76ff9726710a5666303e8fc8856 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 29 Nov 2014 13:04:34 -0800 Subject: [PATCH] allow specifying DEBBUGS_SERVICE for dbicdump_command.sh --- sql/dbicdump_command.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sql/dbicdump_command.sh b/sql/dbicdump_command.sh index b56ad68..0ad4b16 100755 --- a/sql/dbicdump_command.sh +++ b/sql/dbicdump_command.sh @@ -1,5 +1,9 @@ #!/bin/sh +if [ -z "$DEBBUGS_SERVICE" ]; then + DEBBUGS_SERVICE="debbugs"; +fi; + if ! [ -d "sql" ] || ! [ -d "Debbugs" ]; then echo "In the wrong directory" exit 1; @@ -8,5 +12,5 @@ fi; dbicdump -I. -o dump_directory=. \ -o components='["InflateColumn::DateTime"]' \ -o preserve_case=1 \ - Debbugs::DB dbi:Pg:service=debbugs '' ''; + Debbugs::DB dbi:Pg:service=$DEBBUGS_SERVICE '' ''; -- 2.39.2