소스 검색

Tidy key sharing

Bob Mottram 9 년 전
부모
커밋
6c4412b7af
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      src/freedombone-backup-remote

+ 4
- 4
src/freedombone-backup-remote 파일 보기

424
                     # Send a warning email
424
                     # Send a warning email
425
                     echo "Key share to $REMOTE_SERVER failed" | \
425
                     echo "Key share to $REMOTE_SERVER failed" | \
426
                         mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS
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
                 fi
431
                 fi
428
 
432
 
429
                 # remove the temp file/directory
433
                 # remove the temp file/directory
430
                 shred -zu $temp_key_share_fragments/*
434
                 shred -zu $temp_key_share_fragments/*
431
                 rm -rf $temp_key_share_dir
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
             fi
436
             fi
437
         fi
437
         fi
438
     fi
438
     fi