From 0f4d694db44e79e68879088e812347645bc641ea Mon Sep 17 00:00:00 2001 From: nanjiangshu Date: Sun, 8 Dec 2024 22:31:06 +0100 Subject: [PATCH] fix failed integration test with permission error on db-key.pem --- sda-download/dev_utils/compose-sda.yml | 7 ++++--- sda-download/dev_utils/compose.yml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sda-download/dev_utils/compose-sda.yml b/sda-download/dev_utils/compose-sda.yml index 41d3875fd..fad8ca2d5 100644 --- a/sda-download/dev_utils/compose-sda.yml +++ b/sda-download/dev_utils/compose-sda.yml @@ -6,13 +6,14 @@ services: - -c - | cp /origcerts/* /certs - chown -R nobody.nobody /certs/* + chown -R nobody:nobody /certs/* + chmod -R 644 /certs/* chmod -R og-rw /certs/*-key.pem - chown -R 70.70 /certs/db* + chown -R 70:70 /certs/db* ls -la /certs/ container_name: certfixer - image: alpine:latest + image: alpine:latest volumes: - ./certs:/origcerts - certs:/certs diff --git a/sda-download/dev_utils/compose.yml b/sda-download/dev_utils/compose.yml index 5ee4d5b0b..d43b3cdea 100644 --- a/sda-download/dev_utils/compose.yml +++ b/sda-download/dev_utils/compose.yml @@ -5,14 +5,14 @@ services: - -c - | cp /origcerts/* /certs - chown -R nobody.nobody /certs/* + chown -R nobody:nobody /certs/* chmod -R 644 /certs/* chmod -R og-rw /certs/*-key.pem - chown -R 70.70 /certs/db* + chown -R 70:70 /certs/db* ls -la /certs/ container_name: certfixer - image: alpine:latest + image: alpine:latest volumes: - ./certs:/origcerts - certs:/certs