From 6615b2938034f50436d6ad9c9edb5ffe158a95ea Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 14 Feb 2024 00:04:00 +0700 Subject: [PATCH] change root perm --- compose.yaml | 3 +-- printer-daemon/Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 65b3b0e..b79a1fa 100644 --- a/compose.yaml +++ b/compose.yaml @@ -6,5 +6,4 @@ services: - "7125:7125" - "7130:7130" volumes: - - /var/printfarm/printer1:/opt/printstack/data - command: ["/bin/bash", "-c", "/opt/printstack/entrypoint.sh"] \ No newline at end of file + - /var/printfarm/printer1:/opt/printstack/data \ No newline at end of file diff --git a/printer-daemon/Dockerfile b/printer-daemon/Dockerfile index bca3d40..80dd846 100644 --- a/printer-daemon/Dockerfile +++ b/printer-daemon/Dockerfile @@ -68,5 +68,7 @@ RUN moonraker/scripts/install-moonraker.sh -d /opt/printstack/data/moonraker -z # Daemons # ########################## COPY entrypoint.sh /opt/printstack/entrypoint.sh +USER root RUN chmod +x /opt/printstack/entrypoint.sh +USER printeruser ENTRYPOINT ["/opt/printstack/entrypoint.sh"]