More retries
This commit is contained in:
parent
89e797a6e8
commit
580f229333
|
@ -255,14 +255,20 @@ function install_bdsmail {
|
|||
chmod +x /usr/bin/bdsmail_domain
|
||||
|
||||
# wait for domain to be generated by the daemon
|
||||
echo $'Waiting for i2p domain to be generated...'
|
||||
sleep 15
|
||||
bds_domain=$(bdsmail_domain)
|
||||
if [ ! $bds_domain ]; then
|
||||
echo $'Waiting...'
|
||||
# This can take a while, probably because i2p is connecting
|
||||
bds_domain=
|
||||
sleep_ctr=0
|
||||
while [ ! $bds_domain ]; do
|
||||
echo $"Waiting for i2p domain to be generated ${sleep_ctr}/30"
|
||||
systemctl restart bdsmail
|
||||
sleep 15
|
||||
sleep 10
|
||||
bds_domain=$(bdsmail_domain)
|
||||
sleep_ctr=$((sleep_ctr + 1))
|
||||
if [ $sleep_ctr -gt 30 ]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! $bds_domain ]; then
|
||||
#systemctl stop bdsmail
|
||||
#systemctl disable bdsmail
|
||||
|
@ -270,7 +276,6 @@ function install_bdsmail {
|
|||
echo $'Failed to get the bdsmail domain'
|
||||
exit 8934638
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create mutt configuration
|
||||
mkdir /etc/skel/.mutt
|
||||
|
|
Loading…
Reference in New Issue