dsnap-sync: automounter handling update
- use systemd unit and stat the file-system Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -331,10 +331,13 @@ get_disk_infos () {
|
|||||||
ret=$(systemctl --host=$remote status *.automount \
|
ret=$(systemctl --host=$remote status *.automount \
|
||||||
| awk -F ': ' '$0 ~ pattern { print $2 }' \
|
| awk -F ': ' '$0 ~ pattern { print $2 }' \
|
||||||
pattern="Where: $automount_path")
|
pattern="Where: $automount_path")
|
||||||
#ret=$(systemctl --host=172.16.10.10 status *.automount | awk -F ':' '/Where:/ { gsub(" ",""); print $2}')
|
else
|
||||||
if [ ${#ret} -gt 0 ]; then
|
ret=$(systemctl status *.automount \
|
||||||
ret=$($ssh stat --file-system --terse $ret)
|
| awk -F ': ' '$0 ~ pattern { print $2 }' \
|
||||||
fi
|
pattern="Where: $automount_path")
|
||||||
|
fi
|
||||||
|
if [ ${#ret} -gt 0 ]; then
|
||||||
|
ret=$($ssh stat --file-system --terse $ret)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user