Merge pull request #8 from jpmens/curlfix

Existenace of curl is required for notification
This commit is contained in:
Alexander Rust 2017-09-07 10:18:50 +02:00 committed by GitHub
commit 38ef0633f8

View file

@ -31,7 +31,7 @@ check_config() {
fi
if [[ ! -e $RESTIC ]]; then
if [[ ! -x $RESTIC ]]; then
echo "Restic binary not found"
exit 1
fi
@ -62,7 +62,7 @@ do_local_backup () {
$RESTIC --exclude-file /etc/backup/local.exclude backup --hostname $BACKUP_HOSTNAME $BACKUP_DIR
if [ -n "$HEALTHCHECK_URL" ]; then
if [[ ! -e $CURL ]]; then
if [[ -x $CURL ]]; then
$CURL -fsS --retry 4 "$HEALTHCHECK_URL" > /dev/null
fi
fi