aboutsummaryrefslogtreecommitdiffstats
path: root/email-backup
diff options
context:
space:
mode:
Diffstat (limited to 'email-backup')
-rw-r--r--email-backup4
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";