From 06cfafb803f6a94ce9bf9fa4f563d9e063593a6b Mon Sep 17 00:00:00 2001 From: meeb Date: Mon, 25 Jan 2021 13:35:42 +1100 Subject: [PATCH] assert the healthcheck.py exec permissions are preserved, should resolve #41 --- config/root/etc/cont-init.d/10-tubesync | 4 ++-- tubesync/healthcheck.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 tubesync/healthcheck.py diff --git a/config/root/etc/cont-init.d/10-tubesync b/config/root/etc/cont-init.d/10-tubesync index 19ddfc1..5a9ccc4 100644 --- a/config/root/etc/cont-init.d/10-tubesync +++ b/config/root/etc/cont-init.d/10-tubesync @@ -19,8 +19,8 @@ chown -R app:app /app/common/static && \ chmod -R 0750 /app/common/static && \ chown -R app:app /app/static && \ chmod -R 0750 /app/static && \ -find /app -type f -exec chmod 640 {} \; && \ -chmod +x /app/healthcheck.py +find /app -type f ! -iname healthcheck.py -exec chmod 640 {} \; && \ +chmod 0755 /app/healthcheck.py # Run migrations exec s6-setuidgid app \ diff --git a/tubesync/healthcheck.py b/tubesync/healthcheck.py old mode 100644 new mode 100755