From 3face36a371e6fa16af1f22e79a2bb41f2acabc2 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 20 Feb 2018 17:45:12 +0100 Subject: [PATCH] Fix common snapshot script (cherry picked from commit 8d54dc278be8d9b86a53f068103cece1d643c2f9) --- linux_snapshot/filesystem_snapshot_common | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux_snapshot/filesystem_snapshot_common b/linux_snapshot/filesystem_snapshot_common index 2176648a..838f265a 100644 --- a/linux_snapshot/filesystem_snapshot_common +++ b/linux_snapshot/filesystem_snapshot_common @@ -1,6 +1,6 @@ #!/bin/sh -function exit_exclude_snapshot_mountpoints { +exit_exclude_snapshot_mountpoints() { CFG_FILE=/etc/urbackup/exclude_snapshot_mountpoints if ! test -e "$CFG_FILE" then @@ -17,6 +17,7 @@ function exit_exclude_snapshot_mountpoints { done <$CFG_FILE } -function set_filesystem_type { +set_filesystem_type() { TYPE=`df -T -P | egrep " ${1}\$" | head -n 1 | tr -s " " | cut -d" " -f2` + export TYPE }