Skip to content

Commit

Permalink
chown requires sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-varady committed Oct 23, 2023
1 parent dd29330 commit c3424f8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/sanitizer-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ jobs:
matrix:
os: ["ubuntu-22.04"]
pg: ["15.4"]#["15.4", "16.0"]
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install Linux Dependencies
run: |
sudo apt-get update
Expand Down Expand Up @@ -149,8 +145,8 @@ jobs:
- name: Start Postgres
run: |
mkdir -p $PG_INSTALL_DIR/data
chown -R postgres:postgres $PG_INSTALL_DIR/data
chown -R postgres:postgres ${{ github.workspace }}/sanitizer
sudo chown -R postgres:postgres $PG_INSTALL_DIR/data
sudo chown -R postgres:postgres ${{ github.workspace }}/sanitizer
su -c "$PG_INSTALL_DIR/bin/initdb -D $PG_INSTALL_DIR/data" postgres
echo "local all all trust" > ${PGDATA}/pg_hba.conf
echo "host all all 127.0.0.1/32 trust" >> ${PGDATA}/pg_hba.conf
Expand Down

0 comments on commit c3424f8

Please sign in to comment.