From 33a16ddb7508b7cfeda9b1cdef221ff7c8cc16e2 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Tue, 1 Feb 2022 17:20:30 +0100 Subject: [PATCH] Modified: usr/local/sbin/restic_backup.sh --- usr/local/sbin/restic_backup.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr/local/sbin/restic_backup.sh b/usr/local/sbin/restic_backup.sh index 27a531e..053b292 100644 --- a/usr/local/sbin/restic_backup.sh +++ b/usr/local/sbin/restic_backup.sh @@ -11,7 +11,6 @@ # Exit on error, unset var, pipe failure set -euo pipefail - # Assert that all needed environment variables are set. # TODO in future if this grows, move this to a restic_lib.sh assert_envvars() { @@ -31,7 +30,6 @@ assert_envvars \ RESTIC_RETENTION_DAYS RESTIC_RETENTION_MONTHS RESTIC_RETENTION_WEEKS RESTIC_RETENTION_YEARS - # Clean up lock if we are killed. # If killed by systemd, like $(systemctl stop restic), then it kills the whole cgroup and all it's subprocesses. # However if we kill this script ourselves, we need this trap that kills all subprocesses manually.