View | Details | Raw Unified | Return to bug 17547
Collapse All | Expand All

(-)debian/univention-printserver-pdf.dirs (-2 lines)
 Lines 1-5    Link Here 
1
usr/lib/univention-install/
1
usr/lib/univention-install/
2
usr/sbin/
3
usr/bin/
4
usr/lib/univention-directory-listener/system
2
usr/lib/univention-directory-listener/system
5
var/cache/cups-pdf/
3
var/cache/cups-pdf/
(-)debian/univention-printserver-pdf.postrm (-10 / +21 lines)
 Lines 31-50    Link Here 
31
ldapbase=`univention-config-registry get ldap/base`
31
ldapbase=`univention-config-registry get ldap/base`
32
hostname=`univention-config-registry get hostname`
32
hostname=`univention-config-registry get hostname`
33
domain=`univention-config-registry get domainname`
33
domain=`univention-config-registry get domainname`
34
server_role=`univention-config-registry get server/role`
34
name='pdfPrinterShare'
35
name=pdfPrinter
36
dir='/var/cache/cups-pdf/%U'
37
anon_dir='/var/cache/cups-pdf'
38
35
39
# share und printer löschen
36
# share und printer löschen
40
# create pdf share
37
for p in $( udm shares/printer list --filter "&((uri=cups-pdf:/*)(spoolHost=${hostname}.${domain}))" | sed -ne 's/  name: //p' )
41
#udm shares/share create --ignore_exist --position="cn=shares,$ldapbase" \
38
do
42
#                        --option samba --set name=$name \
39
	univention-cups-reject -r "Uninstalled" "$p"
43
#                        --set host=$hostname.$domain --set path=$dir \
40
done
44
#                        --set webaccessName=$name
45
41
42
case "$1" in
43
	purge)
44
		udm shares/printer remove --filter "&((uri=cups-pdf:/*)(spoolHost=${hostname}.${domain}))" || [ $? -eq 3 ]
45
46
		# Dont remove the following entries, since they are domain-global and are only
47
		# added once during the initial join; re-installing the package doesn't do it
48
		# again.
49
		:udm shares/share remove --dn "cn=$name,cn=shares,$ldapbase"
50
		:udm settings/printeruri modify --dn="cn=printeruris,cn=cups,cn=univention,$ldapbase" \
51
			--remove printeruri="cups-pdf:/"
52
		:udm settings/printermodel modify --dn "cn=PDF,cn=cups,cn=univention,$ldapbase" \
53
			--remove printmodel="\"cups-pdf/CUPS-PDF.ppd\" \"Generic CUPS-PDF Printer\""
54
		;;
55
esac
56
46
# set old permissions of cups-pdf backend
57
# set old permissions of cups-pdf backend
47
dpkg-statoverride --add --force --update root lp 4754 /usr/lib/cups/backend/cups-pdf
58
dpkg-statoverride --quiet --remove /usr/lib/cups/backend/cups-pdf || true
48
59
49
#DEBHELPER#
60
#DEBHELPER#
50
61

Return to bug 17547