From 0bfbef932dc3616ef0c9004dda6feaa12151f91f Mon Sep 17 00:00:00 2001 From: idk Date: Sat, 6 Mar 2021 20:01:23 +0000 Subject: [PATCH] Add an uninstaller for Linuxes --- Makefile | 6 ++++++ src/unix/i2pbrowser.sh | 1 + src/unix/i2pconfig.sh | 1 + 3 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index d59e494..a626ef4 100644 --- a/Makefile +++ b/Makefile @@ -112,3 +112,9 @@ install: cp -vr build/profile /var/lib/i2pbrowser/profile cp -vr build/app-profile /var/lib/i2pbrowser/app-profile +uninstall: + rm -rfv /etc/i2pbrowser \ + /var/lib/i2pbrowser \ + /etc/i2pbrowser/i2pbrowserrc \ + /usr/local/bin/i2pbrowser \ + /usr/local/bin/i2pconfig diff --git a/src/unix/i2pbrowser.sh b/src/unix/i2pbrowser.sh index ee8bdcd..4907d27 100755 --- a/src/unix/i2pbrowser.sh +++ b/src/unix/i2pbrowser.sh @@ -14,6 +14,7 @@ if [ ! -d "$BROWSING_PROFILE" ]; then fi if [ ! -f "$BROWSING_PROFILE/user.js" ]; then + echo "user.js not present in $BROWSING_PROFILE, this is not a Firefox profile" exit 1 fi diff --git a/src/unix/i2pconfig.sh b/src/unix/i2pconfig.sh index b78e5c0..e328239 100755 --- a/src/unix/i2pconfig.sh +++ b/src/unix/i2pconfig.sh @@ -14,6 +14,7 @@ if [ ! -d "$CONFIGURING_PROFILE" ]; then fi if [ ! -f "$CONFIGURING_PROFILE/user.js" ]; then + echo "user.js not present in $CONFIGURING_PROFILE, this is not a Firefox profile" exit 1 fi