Files
i2p.itoopie/debian/scripts/postrm

18 lines
377 B
Plaintext
Raw Normal View History

#!/bin/sh
2010-10-31 19:54:49 +00:00
# /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
if [ $? -eq 0 ]; then
exec userdel $I2PUSER
fi
# if somebody did updates in-network, there may be new files that dpkg
# doesn't know about, so just to be sure
I2P=/usr/share/i2p
rm -rf $I2P