Fix common snapshot script

(cherry picked from commit 8d54dc278b)
This commit is contained in:
Martin 2018-02-20 17:45:12 +01:00
parent 9a46526fbb
commit 3face36a37

View File

@ -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
}