From e2e4fcadad64e9223d4305d762a2435bba4f4880 Mon Sep 17 00:00:00 2001 From: jdh8d <jdh8d@git.zephyr-software.com> Date: Wed, 21 Oct 2015 18:56:17 +0000 Subject: [PATCH] Wrappers for setting up cfar peasoup databases and running peasoup in parallel. --- .gitattributes | 1 + cfar_postgres_setup.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 cfar_postgres_setup.sh diff --git a/.gitattributes b/.gitattributes index 01d43119f..b7d99216f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ * text=auto !eol /build-all.sh -text +/cfar_postgres_setup.sh -text /clean-all.sh -text /get-peasoup-packages.sh -text /irdb_vars -text diff --git a/cfar_postgres_setup.sh b/cfar_postgres_setup.sh new file mode 100755 index 000000000..63dc7a354 --- /dev/null +++ b/cfar_postgres_setup.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +#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 + + #Setup the Database to store PEASOUP info + PGDATABASE=peasoup_$USER_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh + +done -- GitLab