Skip to content
Snippets Groups Projects
Commit 14998440 authored by jdh8d's avatar jdh8d
Browse files

No commit message

No commit message
parent e55baa86
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,23 @@
echo \$USER is $USER
reset_db()
{
dropdb $PGDATABASE || true
createdb -O ${USER} $PGDATABASE
$PEASOUP_HOME/tools/db/pdb_setup.sh
}
# reset default db
reset_db
#Create Database User and Table
source set_env_vars
for i in $(seq 0 4)
do
dropdb peasoup_${USER}_v$i
createdb -O ${USER} peasoup_${USER}_v$i
#Setup the Database to store PEASOUP info
PGDATABASE=peasoup_${USER}_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh
PGDATABASE=peasoup_${USER}_v$i reset_db
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment