[X2Go-Commits] [live-build-x2go] 153/167: separate umount added, for when the condition isn't matched

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 00:33:03 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/openbox-magic-pixel-workaround
in repository live-build-x2go.

commit 285129165304d74cdd5e2bcf213dc51e79c8a47d
Author: Stefan Baur <kontakt at baur-itcs.de>
Date:   Tue Nov 7 20:28:04 2017 +0100

    separate umount added, for when the condition isn't matched
---
 config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
index aad3b9d..553ea3b 100755
--- a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
+++ b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
@@ -93,6 +93,7 @@ GetSSHHostKeysFromMedia ()
 						mkdir -p /media/fixeddisks/$NEXTDEVICE
 						mount -o ro /dev/$NEXTDEVICE /media/fixeddisks/$NEXTDEVICE
 						check_for_config /media/fixeddisks/$NEXTDEVICE && umount /media/fixeddisks/$NEXTDEVICE && exit 0
+						umount /media/fixeddisks/$NEXTDEVICE
 					else
 						echo -n "\n$(date +'%F | %T | ')'$0' Device '$NEXTDEVICE' is a removable disk, not mounted by automounter, skipping." | tee -a /dev/tty8
 						:

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list