From 637647e207c6546459ec34a3945b56f0502cbdd6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Feb 2018 19:41:55 +0000 Subject: [PATCH] Remove directories if they exist --- src/freedombone-utils-i2p | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/freedombone-utils-i2p b/src/freedombone-utils-i2p index f9c25f06..c3719131 100755 --- a/src/freedombone-utils-i2p +++ b/src/freedombone-utils-i2p @@ -68,6 +68,13 @@ function remove_i2p { # This might not be true in future sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf /sbin/sysctl -p -q + + if [ -d /var/lib/i2p ]; then + rm -rf /var/lib/i2p + fi + if [ -d /etc/i2p ]; then + rm -rf /etc/i2p + fi } function i2p_enable_sam {