Skip to content

Commit

Permalink
Fix CUPS permissions typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sapireli authored Jan 20, 2025
1 parent 5af301d commit 063c7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airprint_bridge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ check_cups_permissions() {
log "CUPS does not allow remote access to shared printers. Backing up cups config to cupsd_conf.bak, and auto fixing"

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

0 comments on commit 063c7ac

Please sign in to comment.