]> git.donarmstrong.com Git - debbugs.git/blobdiff - sql/dbicdump_command.sh
allow specifying DEBBUGS_SERVICE for dbicdump_command.sh
[debbugs.git] / sql / dbicdump_command.sh
index b56ad6866d3019f562fa17e4d0b5169d08ec14a7..0ad4b16425c680a247c658a60ae1ee4604b9102d 100755 (executable)
@@ -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 '' '';