X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=sql%2Fbuilder.sh;h=2c4bbfa4354d3cb7f045712255620a22e5e6c996;hb=0aa15362fed8ca3bc4e3f23c02f04de50d293ca8;hp=19817de80b2375345967f8da3c17b113d66985dc;hpb=d5f852f7ea1ab5b8d73c7e33e198a26ea420d4fd;p=brisk.git diff --git a/sql/builder.sh b/sql/builder.sh index 19817de..2c4bbfa 100755 --- a/sql/builder.sh +++ b/sql/builder.sh @@ -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 @@ -16,8 +16,8 @@ else PFX="bsk_" fi -if [ -f $HOME/.brisk_install ]; then - source $HOME/.brisk_install +if [ -f $HOME/.brisk_spu_install ]; then + source $HOME/.brisk_spu_install fi pg_args="" @@ -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"