Explorar el Código

Tidy key sharing

Bob Mottram hace 9 años
padre
commit
6c4412b7af
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      src/freedombone-backup-remote

+ 4
- 4
src/freedombone-backup-remote Ver fichero

@@ -424,15 +424,15 @@ function disperse_key_shares {
424 424
                     # Send a warning email
425 425
                     echo "Key share to $REMOTE_SERVER failed" | \
426 426
                         mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS
427
+                else
428
+                    # Send a confirmation email
429
+                    echo "Key ${share_filename} shared to $REMOTE_SERVER" | \
430
+                        mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS
427 431
                 fi
428 432
 
429 433
                 # remove the temp file/directory
430 434
                 shred -zu $temp_key_share_fragments/*
431 435
                 rm -rf $temp_key_share_dir
432
-
433
-                # Send a confirmation email
434
-                echo "Key ${share_filename} shared to $REMOTE_SERVER" | \
435
-                    mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS
436 436
             fi
437 437
         fi
438 438
     fi