File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 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 : |
You can’t perform that action at this time.
0 commit comments