source: debian/scripts/postrm @ 3e2c530

Last change on this file since 3e2c530 was 3e2c530, checked in by HungryHobo <HungryHobo@…>, 11 years ago

Fix error message with dpkg —purge

  • Property mode set to 100755
File size: 421 bytes
Line 
1#!/bin/sh
2
3# $1 is either "remove" or "purge". Since there are no config
4# files left after a remove, exit here if called with "purge".
5# This avoids calling userdel again which would cause an error.
6if [ "$1" = "purge" ]; then
7        exit 0;
8fi
9
10I2PUSER=i2psvc
11exec userdel $I2PUSER
12
13# if somebody did updates in-network, there may be new files that dpkg
14# doesn't know about, so just to be sure
15I2P=/usr/lib/i2p
16rm -rf $I2P
17
Note: See TracBrowser for help on using the repository browser.