diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2018-06-27 16:33:18 +0200 |
---|---|---|
committer | Henrik Riomar <henrik.riomar@gmail.com> | 2018-06-27 18:49:08 +0200 |
commit | c566212c4a59d2b8a21d257d6818dcca23e01597 (patch) | |
tree | b003f034a6c2abebc15733f7d02d5a9c7250ac5c /testing/simplesnap/0003-use-CHECKHOST-in-checkbackups-function.patch | |
parent | 6c7cdd83eb8533325dbc46b6899b87fc14c8cd2e (diff) | |
download | aports-c566212c4a59d2b8a21d257d6818dcca23e01597.tar.bz2 aports-c566212c4a59d2b8a21d257d6818dcca23e01597.tar.xz |
testing/simplesnap: new aport
Patches are from upstream/master
Diffstat (limited to 'testing/simplesnap/0003-use-CHECKHOST-in-checkbackups-function.patch')
-rw-r--r-- | testing/simplesnap/0003-use-CHECKHOST-in-checkbackups-function.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/simplesnap/0003-use-CHECKHOST-in-checkbackups-function.patch b/testing/simplesnap/0003-use-CHECKHOST-in-checkbackups-function.patch new file mode 100644 index 0000000000..b1bd214c43 --- /dev/null +++ b/testing/simplesnap/0003-use-CHECKHOST-in-checkbackups-function.patch @@ -0,0 +1,32 @@ +From 79dd4680928fdc999527123ebd6b3363ca705e4a Mon Sep 17 00:00:00 2001 +From: Henrik Riomar <henrik.riomar@gmail.com> +Date: Tue, 26 Jun 2018 07:57:58 +0200 +Subject: [PATCH] use CHECKHOST in checkbackups() function + +$CHECKHOST variable defined in checkbackups is unused, lets use it +instead of the global $HOST +--- + simplesnap | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/simplesnap b/simplesnap +index 63fc0c2..d9e1806 100755 +--- a/simplesnap ++++ b/simplesnap +@@ -192,11 +192,11 @@ runzfs () { + + checkbackups () { + CHECKHOST="$1" +- DATASETS="`runzfs list -t filesystem,volume -o name -H -r \"${STORE}/${HOST}\"`" ++ DATASETS="`runzfs list -t filesystem,volume -o name -H -r \"${STORE}/${CHECKHOST}\"`" + CUTOFF="`$DATE -d \"${CHECKMODE}\" +%s`" + for CHECKDS in ${DATASETS}; do + # Don't check the top-level host dataset itself. +- if [ "${CHECKDS}" = "${STORE}/${HOST}" ]; then ++ if [ "${CHECKDS}" = "${STORE}/${CHECKHOST}" ]; then + continue + fi + +-- +2.17.1 + |