diff --git a/.gitattributes b/.gitattributes index 37e62a9f638910ff088d167cb777b913e5eeb3c8..4dce1730b41197d1d46f24f7387d95b087cd4041 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,7 @@ /build-all.sh -text /build_diehard.sh -text /cfar_postgres_setup.sh -text +/cfar_postgres_setup_for_other.sh -text /clean-all.sh -text /clean_diehard.sh -text /get-peasoup-packages.sh -text diff --git a/build-all.sh b/build-all.sh index ce85496a047043801bfa57683b822721f322d3cb..38b348eeffb2e0ca7cf548c231246062fe537bce 100755 --- a/build-all.sh +++ b/build-all.sh @@ -111,6 +111,6 @@ cd $PEASOUP_UMBRELLA_DIR echo echo -echo "Overall build complete." +echo "peasoup/cfar_umbrella Overall build complete." echo echo diff --git a/cfar_postgres_setup_for_other.sh b/cfar_postgres_setup_for_other.sh new file mode 100755 index 0000000000000000000000000000000000000000..f9535c586b5ac33fbaaf66221ca27419235d1c8a --- /dev/null +++ b/cfar_postgres_setup_for_other.sh @@ -0,0 +1,24 @@ +#!/bin/bash -x + +#Create Database User and Table +source set_env_vars + +other=$1 + + + +echo other is $other + +sudo su -c "dropdb peasoup_${other}" postgres +sudo su -c "createdb -O ${other} peasoup_${other}" postgres +PGDATABASE=peasoup_${other} $PEASOUP_HOME/tools/db/pdb_setup.sh + +for i in $(seq 0 4) +do + sudo su -c "dropdb peasoup_${other}_v$i" postgres + sudo su -c "createdb -O ${other} peasoup_${other}_v$i" postgres + + #Setup the Database to store PEASOUP info + PGDATABASE=peasoup_${other}_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh + +done