die if no backups defined
This commit is contained in:
parent
b669b1078b
commit
58d34c4c16
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user