debianmacno-cupsnodebathenaweb
Last change
on this file since 5bb5b34 was
5bb5b34,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Have the CUPS daemon run under group audio
|
-
Property mode set to
100755
|
File size:
561 bytes
|
Rev | Line | |
---|
[c503858] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | # Set the CUPS permissions such that anyone can add/remove jobs |
---|
| 4 | # from the queue for gutenbach. |
---|
| 5 | |
---|
| 6 | if [ -e /usr/lib/gutenbach/config/printername ]; then |
---|
| 7 | printername="$(cat /usr/lib/gutenbach/config/printername)" |
---|
| 8 | |
---|
| 9 | cat >> /etc/cups/cupsd.conf <<EOF |
---|
[4cd453f] | 10 | # Begin configurations for gutenbach |
---|
| 11 | |
---|
[c503858] | 12 | <Location /printers/$printername> |
---|
| 13 | Order Deny, Allow |
---|
| 14 | Allow from All |
---|
| 15 | </Location> |
---|
[4cd453f] | 16 | |
---|
[5bb5b34] | 17 | Group audio |
---|
| 18 | |
---|
[4cd453f] | 19 | # End configurations for gutenbach |
---|
[c503858] | 20 | EOF |
---|
| 21 | |
---|
[4cd453f] | 22 | /etc/init.d/cups reload |
---|
| 23 | |
---|
[c503858] | 24 | else |
---|
| 25 | echo "Error: /usr/lib/gutenbach/config/printername does not exist" |
---|
| 26 | exit 1 |
---|
| 27 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.