fix double umount issue where multiple repos have the same datapath

This commit is contained in:
Rob Pearce 2020-11-08 00:24:35 +11:00
parent cc291b2ea4
commit a8e4f54266
1 changed files with 11 additions and 9 deletions

View File

@ -389,6 +389,7 @@ function do_mount() {
} }
function do_umount() { function do_umount() {
if is_mounted $DATAPATH; then
if [[ $USEUSMB -eq 1 ]]; then if [[ $USEUSMB -eq 1 ]]; then
log "Unmounting usmb volume '$USMBNAME'" log "Unmounting usmb volume '$USMBNAME'"
usmb -u $USMBNAME usmb -u $USMBNAME
@ -399,6 +400,7 @@ function do_umount() {
log "Unmounting dir $DATAPATH" log "Unmounting dir $DATAPATH"
umount $DATAPATH umount $DATAPATH
fi fi
fi
} }
function updatedir() { function updatedir() {