From 6562d131f7a7e9798a398696f733f7e1ee5cfd4a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Feb 2018 10:23:22 +0000 Subject: [PATCH] Add a restart --- src/freedombone-app-bdsmail | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-bdsmail b/src/freedombone-app-bdsmail index d8b8a0a2..7beafb0a 100755 --- a/src/freedombone-app-bdsmail +++ b/src/freedombone-app-bdsmail @@ -169,6 +169,7 @@ function remove_bdsmail { fi userdel -r bdsmail + remove_i2p remove_app bdsmail remove_completion_param install_bdsmail sed -i '/bdsmail/d' $COMPLETION_FILE @@ -176,7 +177,6 @@ function remove_bdsmail { if [ -d /etc/bdsmail ]; then rm -rf /etc/bdsmail fi - remove_i2p } function install_bdsmail { @@ -258,11 +258,12 @@ function install_bdsmail { # wait for domain to be generated by the daemon echo $'Waiting for i2p domain to be generated...' - sleep 10 + sleep 15 bds_domain=$(bdsmail_domain) if [ ! $bds_domain ]; then echo $'Waiting...' - sleep 10 + systemctl restart bdsmail + sleep 15 bds_domain=$(bdsmail_domain) if [ ! $bds_domain ]; then #systemctl stop bdsmail