supp_comp partial support (db/prefs management, usage is missing)
[brisk.git] / sql / builder.sh
index 1dd9b14..2c4bbfa 100755 (executable)
@@ -4,7 +4,7 @@
 #  all this part is from mopshop and we will use it to construct the brisk database
 #
 if [ -f $HOME/.brisk-spu-db.conf ]; then
-    source $HOME/.brisk-db.conf
+    source $HOME/.brisk-spu-db.conf
 elif [ -f $HOME/.db.conf ]; then
     source $HOME/.db.conf
 else
@@ -90,7 +90,7 @@ elif [ "$1" = "dumpall" ]; then
         pg_dump -h $DBHOST -U $DBUSER $DBBASE > $2
     fi
 elif [ "$1" = "add" ]; then
-    cat "$2" | psql $pg_args
+    cat "$2" | sqlexe $sht
 else
     echo " USAGE"
     echo "   ./builder create"