18 lines
421 B
Bash
Executable File
18 lines
421 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# $1 is either "remove" or "purge". Since there are no config
|
|
# files left after a remove, exit here if called with "purge".
|
|
# This avoids calling userdel again which would cause an error.
|
|
if [ "$1" = "purge" ]; then
|
|
exit 0;
|
|
fi
|
|
|
|
I2PUSER=i2psvc
|
|
exec userdel $I2PUSER
|
|
|
|
# if somebody did updates in-network, there may be new files that dpkg
|
|
# doesn't know about, so just to be sure
|
|
I2P=/usr/lib/i2p
|
|
rm -rf $I2P
|
|
|