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"]