From 0d09aba0d4c261929d038e5d65999815bc32892a Mon Sep 17 00:00:00 2001
From: an7s <an7s@git.zephyr-software.com>
Date: Wed, 21 Sep 2016 14:43:36 +0000
Subject: [PATCH] No longer use sudo to setup database tables

Former-commit-id: e55baa86e2ba5e60afbbde12f1f14414a7bce2a3
---
 cfar_postgres_setup.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cfar_postgres_setup.sh b/cfar_postgres_setup.sh
index 23a3715fa..9b0bfa20a 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
-- 
GitLab