Merge pull request #8 from jpmens/curlfix
Existenace of curl is required for notification
This commit is contained in:
commit
38ef0633f8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue