Remove directories if they exist

This commit is contained in:
Bob Mottram 2018-02-11 19:41:55 +00:00
parent 6a54a30e50
commit 637647e207
1 changed files with 7 additions and 0 deletions

View File

@ -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 {