From 2130ee944ae876a1f4a637ddf6a6d25bad0ae914 Mon Sep 17 00:00:00 2001 From: Max Winterstein Date: Sun, 18 Dec 2022 20:40:57 +0100 Subject: [PATCH] [CUPS] Fix permission issue - hopefully --- cups/CHANGELOG.md | 4 ++++ cups/Dockerfile | 5 +++++ cups/config.yaml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cups/CHANGELOG.md b/cups/CHANGELOG.md index 9e84174..f1d6d75 100644 --- a/cups/CHANGELOG.md +++ b/cups/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.1 -- 18.12.2022 + +- Fix permisson error + ## 2.0.0 -- 18.12.2022 - Changed `init` to `false` to make it at least starting. diff --git a/cups/Dockerfile b/cups/Dockerfile index 3c6fc23..2fb9ae9 100644 --- a/cups/Dockerfile +++ b/cups/Dockerfile @@ -28,6 +28,11 @@ RUN apt-get update \ COPY rootfs / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi + EXPOSE 631 445 137 139 CMD ["/run.sh"] diff --git a/cups/config.yaml b/cups/config.yaml index bc2cff7..13758c5 100644 --- a/cups/config.yaml +++ b/cups/config.yaml @@ -1,6 +1,6 @@ --- name: CUPS Print Server -version: 2.0.0 +version: 2.0.1 stage: experimental slug: cups image: ghcr.io/maxwinterstein/homeassistant-addon-cups-{arch}