Add a restart

This commit is contained in:
Bob Mottram 2018-02-12 10:23:22 +00:00
parent 37ac4dd20e
commit 6562d131f7
1 changed files with 4 additions and 3 deletions

View File

@ -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