Improve removal of i2p
This commit is contained in:
parent
1bd4926462
commit
37ac4dd20e
|
@ -56,21 +56,21 @@ function install_i2p {
|
||||||
# i2p needs ipv6 to be enabled
|
# i2p needs ipv6 to be enabled
|
||||||
sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 0|g' /etc/sysctl.conf
|
sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 0|g' /etc/sysctl.conf
|
||||||
/sbin/sysctl -p -q
|
/sbin/sysctl -p -q
|
||||||
sysctl --system
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -yq install i2p i2p-keyring
|
apt-get -yq install i2p i2p-keyring
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_i2p {
|
function remove_i2p {
|
||||||
apt-get -yq remove i2p i2p-keyring --purge
|
apt-get -yq remove i2p-router --purge
|
||||||
|
apt-get -yq remove i2p --purge
|
||||||
|
apt-get -yq remove i2p-keyring --purge
|
||||||
apt-get -yq autoremove
|
apt-get -yq autoremove
|
||||||
|
|
||||||
# It's assumed here that ipv6 is only needed for i2p
|
# It's assumed here that ipv6 is only needed for 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
|
||||||
sysctl --system
|
|
||||||
|
|
||||||
if [ -d /var/lib/i2p ]; then
|
if [ -d /var/lib/i2p ]; then
|
||||||
rm -rf /var/lib/i2p
|
rm -rf /var/lib/i2p
|
||||||
|
|
Loading…
Reference in New Issue