Remove directories if they exist
This commit is contained in:
parent
6a54a30e50
commit
637647e207
|
@ -68,6 +68,13 @@ function remove_i2p {
|
||||||
# This might not be true in future
|
# 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
|
sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
|
||||||
/sbin/sysctl -p -q
|
/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 {
|
function i2p_enable_sam {
|
||||||
|
|
Loading…
Reference in New Issue