fix bug that borg backup vars not providet

This commit is contained in:
2022-09-27 21:18:34 +02:00
parent 68bc4dd596
commit c009a91055
+3 -3
View File
@@ -39,9 +39,9 @@ function check_borg_backup_vars() {
local errors=0 local errors=0
if [ ! -z "$BORG_BACKUP_TRUE" ]; then if [ ! -z "$BORG_BACKUP_TRUE" ]; then
if [ "$BORG_REPO" ]; then echo "Musst provice BORG_REPO"; errors=$(($errors + 1)); fi if [ -z "$BORG_REPO" ]; then echo "Musst provice BORG_REPO"; errors=$(($errors + 1)); fi
if [ "$BORG_CREATE_PARAMS" ]; then echo "Musst provice BORG_CREATE_PARAMS"; errors=$(($errors + 1)); fi if [ -z "$BORG_CREATE_PARAMS" ]; then echo "Musst provice BORG_CREATE_PARAMS"; errors=$(($errors + 1)); fi
if [ "$BORG_PRUNE_PARAMS" ]; then echo "Musst provice BORG_PRUNE_PARAMS"; errors=$(($errors + 1)); fi if [ -z "$BORG_PRUNE_PARAMS" ]; then echo "Musst provice BORG_PRUNE_PARAMS"; errors=$(($errors + 1)); fi
fi fi
if [ $errors -ne 0 ]; then exit 1; fi if [ $errors -ne 0 ]; then exit 1; fi