From 57e6967d637a81520e50ff891c65e2ee897e1f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Thu, 23 Mar 2023 22:39:45 +0100 Subject: [PATCH] FIX Inverted CUPS_TRUSTED_PROXY start-up condition. --- entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a7d159c..a00b5e8 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -97,13 +97,12 @@ sed -i -E "s:^(lpadmin\:x\:[0-9]+\:)(.*)$:\1$ADMIN_ACCOUNT\,\2:" /etc/group sed -i -E "s:^(lpadmin\:x\:[0-9]+\:)(.*)$:\1$ADMIN_ACCOUNT\,\2:" /etc/group if [ -z "$CUPS_TRUSTED_PROXY" ]; then + sed -E -i "s:(Order allow\,deny):\1\n Allow all:" /etc/cups/cupsd.conf +else sed -E -i "s:(Order allow\,deny):\1\n Allow $CUPS_TRUSTED_PROXY:" /etc/cups/cupsd.conf echo -e "\n" >> /etc/cups/cupsd.conf echo "DefaultEncryption Never" >> /etc/cups/cupsd.conf -else - sed -E -i "s:(Order allow\,deny):\1\n Allow all:" /etc/cups/cupsd.conf fi - echo 'Restarting Samba using supervisord' exec "$@"