Add some restarts

This commit is contained in:
Bob Mottram 2018-02-12 14:33:18 +00:00
parent 49f094140c
commit db05c3364f
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,7 @@ function install_i2p {
apt-get update
apt-get -yq install i2p i2p-keyring
systemctl restart i2p
}
function remove_i2p {
@ -84,6 +85,10 @@ function remove_i2p {
}
function i2p_enable_sam {
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
systemctl restart i2p
sleep 10
fi
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
echo $'File not found /var/lib/i2p/i2p-config/clients.config'
exit 483648364834