Skip to content
Snippets Groups Projects
Commit f86e711f authored by Bob Mottram's avatar Bob Mottram
Browse files

More messing with of i2p install

parent d9281a37
No related branches found
No related tags found
No related merge requests found
...@@ -86,13 +86,14 @@ function remove_i2p { ...@@ -86,13 +86,14 @@ function remove_i2p {
if [ -d /var/log/i2p ]; then if [ -d /var/log/i2p ]; then
rm /var/log/i2p rm /var/log/i2p
fi fi
rm -rf /tmp/i2p*
} }
function i2p_enable_sam { function i2p_enable_sam {
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
service i2p stop service i2p stop
apt-get -yq remove i2p --purge apt-get -yq remove i2p i2p-keyring --purge
apt-get -yq remove i2p-router --purge apt-get -yq remove i2p-router --purge
if [ -d /var/lib/i2p ]; then if [ -d /var/lib/i2p ]; then
rm -rf /var/lib/i2p rm -rf /var/lib/i2p
...@@ -106,8 +107,10 @@ function i2p_enable_sam { ...@@ -106,8 +107,10 @@ function i2p_enable_sam {
if [ -d /var/log/i2p ]; then if [ -d /var/log/i2p ]; then
rm /var/log/i2p rm /var/log/i2p
fi fi
rm -rf /tmp/i2p*
apt-get -yq install i2p i2p-keyring apt-get -yq install i2p i2p-keyring
apt-get -yq install i2p-router apt-get -yq install i2p-router --reinstall
systemctl restart i2p
sleep 10 sleep 10
fi fi
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment