diff --git a/cfar_postgres_setup.sh b/cfar_postgres_setup.sh index 23a3715faf47fd3a7a5acd53ec34682f7aa3ab5f..9b0bfa20a137a097a13d4189dd4817a7b95cde5d 100755 --- a/cfar_postgres_setup.sh +++ b/cfar_postgres_setup.sh @@ -6,10 +6,9 @@ echo \$USER is $USER source set_env_vars for i in $(seq 0 4) do - sudo su -c "dropdb peasoup_${USER}_v$i" postgres - sudo su -c "createdb -O ${USER} peasoup_${USER}_v$i" postgres + 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 - done