Also autoremove
This commit is contained in:
parent
9eaca4e4da
commit
1bd4926462
|
@ -64,6 +64,7 @@ function install_i2p {
|
|||
|
||||
function remove_i2p {
|
||||
apt-get -yq remove i2p i2p-keyring --purge
|
||||
apt-get -yq autoremove
|
||||
|
||||
# It's assumed here that ipv6 is only needed for i2p
|
||||
# This might not be true in future
|
||||
|
@ -83,6 +84,10 @@ function remove_i2p {
|
|||
}
|
||||
|
||||
function i2p_enable_sam {
|
||||
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
|
||||
echo $'File not found /var/lib/i2p/i2p-config/clients.config'
|
||||
exit 483648364834
|
||||
fi
|
||||
sed -i 's|clientApp.1.startOnLoad=.*|clientApp.1.startOnLoad=true|g' /var/lib/i2p/i2p-config/clients.config
|
||||
systemctl restart i2p
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue