diff options
author | Christian Hesse <mail@eworm.de> | 2021-02-18 12:45:16 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-02-18 12:54:04 +0100 |
commit | 3f12730ed43cce4a5eda5c5522ea619e63b17515 (patch) | |
tree | 7945077ad260fe8af001e2cfc564f342b31ece24 /email-backup | |
parent | 776f072415a853a8ba55d76de3df48e99062dc42 (diff) |
email-backup: no example address, complain if missing
Diffstat (limited to 'email-backup')
-rw-r--r-- | email-backup | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/email-backup b/email-backup index d439d89..a60b701 100644 --- a/email-backup +++ b/email-backup @@ -27,6 +27,10 @@ $WaitFullyConnected; $LogPrintExit error ("Configured to send neither backup nor config export.") true; } +:if ([ :len $EmailBackupTo ] = 0) do={ + $LogPrintExit error ("Configuration is missing recipient for e-mail backup.") true; +} + # filename based on identity :local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ]; :local BackupFile "none"; |