projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed fallback error
[brisk.git]
/
sql
/
builder.sh
diff --git
a/sql/builder.sh
b/sql/builder.sh
index
1dd9b14
..
2a02633
100755
(executable)
--- a/
sql/builder.sh
+++ b/
sql/builder.sh
@@
-3,7
+3,7
@@
#
# all this part is from mopshop and we will use it to construct the brisk database
#
#
# all this part is from mopshop and we will use it to construct the brisk database
#
-if [ -f $HOME/.brisk-
spu-
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
source $HOME/.brisk-db.conf
elif [ -f $HOME/.db.conf ]; then
source $HOME/.db.conf
@@
-16,8
+16,8
@@
else
PFX="bsk_"
fi
PFX="bsk_"
fi
-if [ -f $HOME/.brisk_
spu_
install ]; then
- source $HOME/.brisk_
spu_
install
+if [ -f $HOME/.brisk_install ]; then
+ source $HOME/.brisk_install
fi
pg_args=""
fi
pg_args=""
@@
-90,7
+90,7
@@
elif [ "$1" = "dumpall" ]; then
pg_dump -h $DBHOST -U $DBUSER $DBBASE > $2
fi
elif [ "$1" = "add" ]; 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"
else
echo " USAGE"
echo " ./builder create"