File: postinst

package info (click to toggle)
lpr 5.9-29hamm34
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 488 kB
  • ctags: 500
  • sloc: ansic: 6,005; makefile: 120; sh: 82
file content (24 lines) | stat: -rw-r--r-- 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

for i in /var/log/lp-acct /var/log/lp-errs
do
    if [ ! -f $i ]; then
	touch $i
	chmod 644 $i
    fi
done

# Fix directory permissions that might be incorrect.
for i in /var/spool/lpd /var/spool/lpd/lp /var/spool/lpd/remote
do
 if [ -d $i ]; then
   chmod 2775 $i
   chown lp.lp $i
 fi
done

if [ -x /usr/sbin/update-mime ]; then
    update-mime
fi

#DEBHELPER#