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

Updates to get large-only working, and fixes to cfar.sh and cfar_postgres setup to avoid raciness.

parent e2e4fcad
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#!/bin/bash -x
echo \$USER is $USER
#Create Database User and Table
source set_env_vars
for i in $(seq 0 4)
do
sudo su -c "createdb -O $USER peasoup_$USER_v$i" postgres
sudo su -c "dropdb peasoup_${USER}_v$i" postgres
sudo su -c "createdb -O ${USER} peasoup_${USER}_v$i" postgres
#Setup the Database to store PEASOUP info
PGDATABASE=peasoup_$USER_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh
PGDATABASE=peasoup_${USER}_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh
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