From 58d34c4c16ae1c38c81e6a53e485d0f9de42e06b Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Wed, 1 Sep 2010 09:32:07 +0200 Subject: [PATCH] die if no backups defined --- remote-backup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/remote-backup b/remote-backup index f220698..0405599 100755 --- a/remote-backup +++ b/remote-backup @@ -62,6 +62,11 @@ fi for config in /etc/remote-backup/*/config do + if [ ! -e "$config" ] + then + echo "No backups defined, dying." >&2 + exit 128 + fi source /etc/remote-backup/defaults.conf source "$config"