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:
3
debian/scripts/postrm
vendored
3
debian/scripts/postrm
vendored
@ -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
|
||||
|
3
debian/scripts/prerm
vendored
3
debian/scripts/prerm
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user