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

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 01:55:54 CET 2017


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

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

commit 62d1ce1754180dc1a1d68bacc222d39b35ca52af
Author: Stefan Baur <kontakt at baur-itcs.de>
Date:   Tue Nov 7 20:29:15 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