X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=sql%2Fbuilder.sh;h=2a02633a708a5d97e0ffb9b26dad9b7c15e42f8e;hb=f86c5a3da4db71469a15dea60bc9d817b61873e3;hp=387af9a8ecd851380e4921c78be98f5210ad4175;hpb=1d6aed32137b7909bfa0d19b85ad0c0fb04fd776;p=brisk.git diff --git a/sql/builder.sh b/sql/builder.sh index 387af9a..2a02633 100755 --- a/sql/builder.sh +++ b/sql/builder.sh @@ -3,8 +3,9 @@ # # all this part is from mopshop and we will use it to construct the brisk database # - -if [ -f $HOME/.db.conf ]; then +if [ -f $HOME/.brisk-db.conf ]; then + source $HOME/.brisk-db.conf +elif [ -f $HOME/.db.conf ]; then source $HOME/.db.conf else DBHOST=127.0.0.1 @@ -89,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"