diff .github/workflows/ci-test.yml @ 6845:bd4d573ca733

run psql as postgres user.
author John Rouillard <rouilj@ieee.org>
date Wed, 31 Aug 2022 21:32:56 -0400
parents c0d2017ef797
children 845aba20b4b6
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Wed Aug 31 21:27:54 2022 -0400
+++ b/.github/workflows/ci-test.yml	Wed Aug 31 21:32:56 2022 -0400
@@ -53,7 +53,7 @@
           sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf
           sudo service postgresql restart; sleep 30
           # set up postgresql database
-          psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
+          sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
 
       - name: Install mysql
         run: |

Roundup Issue Tracker: http://roundup-tracker.org/