Remove rc.d files in postrm, not in prerm (fixes lintian errors prerm-calls-updaterc.d and postrm-does-not-call-updaterc.d-for-init.d-script)

This commit is contained in:
HungryHobo
2010-11-13 00:03:13 +00:00
parent 7b5e331038
commit a07339e1ff
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
# /etc/rc*.d/*i2p files
update-rc.d -f i2p remove
I2PUSER=i2psvc
# delete $I2PUSER if it exists (it will not if this is a purge after a remove)
id $I2PUSER 2>/dev/null

View File

@ -4,9 +4,6 @@
# stuff in /tmp
rm -f /tmp/wrapper.log /tmp/wrapper.log.1 /tmp/wrapper.log.2 /tmp/i2p.pid /tmp/routerjvm.pid /tmp/router.ping
# /etc/rc*.d/*i2p files
update-rc.d -f i2p remove
# dpkg doesn't know about these files, they were copied out of jbigi.jar by the router
LIB=/usr/lib/i2p
rm -f $LIB/libjbigi.so $LIB/libjcpuid.so