Skip to content

Commit 063c7ac

Browse files
authored
Fix CUPS permissions typo
1 parent 5af301d commit 063c7ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airprint_bridge.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ check_cups_permissions() {
8181
log "CUPS does not allow remote access to shared printers. Backing up cups config to cupsd_conf.bak, and auto fixing"
8282

8383
[ ! -f "${cupsd_conf}.bak" ] && sudo cp "$cupsd_conf" "${cupsd_conf}.bak"
84-
sudo sed -i '' '/<Location \/>/,/<\/Location>/ s/Order allow,deny/Require all granted/' "$cupsd_conf"
84+
sudo sed -i '' '/<Location \/>/,/<\/Location>/ s/Order allow,deny/Order allow,deny\n Allow @LOCAL/' "$cupsd_conf"
8585
if sudo cupsd -t; then
8686
sudo launchctl stop org.cups.cupsd
8787
sudo launchctl start org.cups.cupsd

0 commit comments

Comments
 (0)