Existenace of curl is required for notification
This commit is contained in:
parent
47c3b789c7
commit
522f1fb295
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ check_config() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ ! -e $RESTIC ]]; then
|
if [[ ! -x $RESTIC ]]; then
|
||||||
echo "Restic binary not found"
|
echo "Restic binary not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -62,7 +62,7 @@ do_local_backup () {
|
||||||
$RESTIC --exclude-file /etc/backup/local.exclude backup --hostname $BACKUP_HOSTNAME $BACKUP_DIR
|
$RESTIC --exclude-file /etc/backup/local.exclude backup --hostname $BACKUP_HOSTNAME $BACKUP_DIR
|
||||||
|
|
||||||
if [ -n "$HEALTHCHECK_URL" ]; then
|
if [ -n "$HEALTHCHECK_URL" ]; then
|
||||||
if [[ ! -e $CURL ]]; then
|
if [[ -x $CURL ]]; then
|
||||||
$CURL -fsS --retry 4 "$HEALTHCHECK_URL" > /dev/null
|
$CURL -fsS --retry 4 "$HEALTHCHECK_URL" > /dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue