Skip to content

Commit 9ccbaaa

Browse files
author
chenyunliang520
committed
Update tests-ssl.yml: Replace tee with cat for file creation, add ownership and permissions fix step for opengauss directory
1 parent b404242 commit 9ccbaaa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/tests-ssl.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Create postgresql.conf with SSL
7272
run: |
73-
sudo -u omm tee ${{ github.workspace }}/opengauss/conf/postgresql.conf > /dev/null <<'EOF'
73+
sudo cat > ${{ github.workspace }}/opengauss/conf/postgresql.conf <<'EOF'
7474
max_connections = 200
7575
session_timeout = 10min
7676
bulk_write_ring_size = 2GB
@@ -125,19 +125,22 @@ jobs:
125125
ssl_key_file = '/var/lib/opengauss/certs/server.key'
126126
ssl_ca_file = '/var/lib/opengauss/certs/ca.crt'
127127
EOF
128-
sudo chmod 644 ${{ github.workspace }}/opengauss/conf/postgresql.conf
129128
130129
- name: Create pg_hba.conf with SSL
131130
run: |
132-
sudo -u omm tee ${{ github.workspace }}/opengauss/conf/pg_hba.conf > /dev/null <<'EOF'
131+
sudo cat >${{ github.workspace }}/opengauss/conf/pg_hba.conf <<'EOF'
133132
local all all trust
134133
host all all 127.0.0.1/32 trust
135134
host all all ::1/128 trust
136135
hostssl all all 0.0.0.0/0 cert
137136
host all all 0.0.0.0/0 md5
138137
host replication gaussdb 0.0.0.0/0 md5
139138
EOF
140-
sudo chmod 644 ${{ github.workspace }}/opengauss/conf/pg_hba.conf
139+
140+
- name: Fix ownership
141+
run: |
142+
sudo chown -R omm:omm ${{ github.workspace }}/opengauss
143+
sudo chmod 644 ${{ github.workspace }}/opengauss/conf/*
141144
142145
- name: Debug file permissions
143146
run: |

0 commit comments

Comments
 (0)