From 76a52a8ebd0607029234d0058718d5a067f40960 Mon Sep 17 00:00:00 2001
From: Zachary Klosko <kloskoz@vcu.edu>
Date: Wed, 9 Dec 2020 18:28:46 -0500
Subject: [PATCH] Adding sudos to install.sh

---
 .github/scripts/install.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/scripts/install.sh b/.github/scripts/install.sh
index d8e095b90..b8d0ac102 100644
--- a/.github/scripts/install.sh
+++ b/.github/scripts/install.sh
@@ -31,8 +31,8 @@ apt-get install -y gstreamer1.0-plugins-base \
   postgresql-client
 
 # Creating database for testing
--u postgres psql -c 'CREATE DATABASE libretime;' 
--u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
--u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
--u postgres psql -c 'ALTER USER libretime CREATEDB;'
+sudo -u postgres psql -c 'CREATE DATABASE libretime;' 
+sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
+sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
+sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;'
 mkdir -p /tmp/log/libretime
\ No newline at end of file