FIX Inverted CUPS_TRUSTED_PROXY start-up condition.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user