FIX Inverted CUPS_TRUSTED_PROXY start-up condition.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-23 22:39:45 +01:00
parent 9c8b7c31c8
commit 57e6967d63

View File

@@ -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 "$@"