From 3f12730ed43cce4a5eda5c5522ea619e63b17515 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 18 Feb 2021 12:45:16 +0100 Subject: email-backup: no example address, complain if missing --- email-backup | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'email-backup') 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"; -- cgit v1.2.3-54-g00ecf