Browse Source

Additional waits

Bob Mottram 7 years ago
parent
commit
98f460273c
1 changed files with 8 additions and 4 deletions
  1. 8
    4
      src/freedombone-app-bdsmail

+ 8
- 4
src/freedombone-app-bdsmail View File

@@ -253,12 +253,16 @@ function install_bdsmail {
253 253
     chmod +x /usr/bin/bdsmail_domain
254 254
 
255 255
     # wait for domain to be generated by the daemon
256
-    sleep 10
257
-
256
+    echo $'Waiting for i2p domain to be generated...'
257
+    sleep 15
258 258
     bds_domain=$(bdsmail_domain)
259 259
     if [ ! $bds_domain ]; then
260
-        echo $'Failed to get the bdsmail domain'
261
-        exit 8934638
260
+        sleep 15
261
+        bds_domain=$(bdsmail_domain)
262
+        if [ ! $bds_domain ]; then
263
+            echo $'Failed to get the bdsmail domain'
264
+            exit 8934638
265
+        fi
262 266
     fi
263 267
 
264 268
     # Create mutt configuration