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

Add a restart

parent 37ac4dd2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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