From 9db9093e72b438d2a5b07821335080c5361adf1f Mon Sep 17 00:00:00 2001 From: James Swineson Date: Thu, 25 May 2023 22:06:04 +0800 Subject: [PATCH] accept some chown errors (#24) since chown errors does not mean that things will not run. --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a8816a5..13bc6ac 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,11 +21,11 @@ chown -R atlas:atlas /var/atlasdata # create essential files and fix permission mkdir -p /var/atlas-probe/status -chown -R atlas:atlas /var/atlas-probe/status +chown -R atlas:atlas /var/atlas-probe/status || true mkdir -p /var/atlas-probe/etc -chown -R atlas:atlas /var/atlas-probe/etc +chown -R atlas:atlas /var/atlas-probe/etc || true mkdir -p /var/atlas-probe/state -chown -R atlas:atlas /var/atlas-probe/state +chown -R atlas:atlas /var/atlas-probe/state || true echo "CHECK_ATLASDATA_TMPFS=no" > "${CONFIG_FILE}" # set probe configuration