debianmacno-cupsnodebathenaweb
Last change
on this file since 4cd453f was
4cd453f,
checked in by Yuri Lin <yuri@…>, 15 years ago
|
Reload cups after editing cupsd.conf in cups-set-perms
|
-
Property mode set to
100755
|
File size:
549 bytes
|
Line | |
---|
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 |
---|
10 | |
---|
11 | # Begin configurations for gutenbach |
---|
12 | |
---|
13 | <Location /printers/$printername> |
---|
14 | Order Deny, Allow |
---|
15 | Allow from All |
---|
16 | </Location> |
---|
17 | |
---|
18 | # End configurations for gutenbach |
---|
19 | EOF |
---|
20 | |
---|
21 | /etc/init.d/cups reload |
---|
22 | |
---|
23 | else |
---|
24 | echo "Error: /usr/lib/gutenbach/config/printername does not exist" |
---|
25 | exit 1 |
---|
26 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.