diff --git a/stackgres-k8s/src/operator/src/main/resources/templates/start-patroni.sh b/stackgres-k8s/src/operator/src/main/resources/templates/start-patroni.sh index 2fd971410..3a0c7b43b 100644 --- a/stackgres-k8s/src/operator/src/main/resources/templates/start-patroni.sh +++ b/stackgres-k8s/src/operator/src/main/resources/templates/start-patroni.sh @@ -375,6 +375,7 @@ mv "$PATRONI_CONFIG_FILE_PATH".tmp "$PATRONI_CONFIG_FILE_PATH" cat << EOF > "${LOCAL_BIN_PATH}/postgres" #!/bin/sh chmod 700 "$PG_DATA_PATH" +chmod 700 "${PG_DATA_PATH}/server.key" # fix private key file server.key has group or world access error exec "$PG_BIN_PATH/postgres" "\$@" EOF chmod 755 "${LOCAL_BIN_PATH}/postgres"