From a07339e1ffef8688d0f407388af98dda385b1fdd Mon Sep 17 00:00:00 2001 From: HungryHobo Date: Sat, 13 Nov 2010 00:03:13 +0000 Subject: [PATCH] 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) --- debian/scripts/postrm | 3 +++ debian/scripts/prerm | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/scripts/postrm b/debian/scripts/postrm index 5cc0f518a3..38a4170ab1 100755 --- a/debian/scripts/postrm +++ b/debian/scripts/postrm @@ -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 diff --git a/debian/scripts/prerm b/debian/scripts/prerm index 3a88e95163..74f0bafed3 100755 --- a/debian/scripts/prerm +++ b/debian/scripts/prerm @@ -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