[X2Go-Commits] [live-build-x2go] 55/108: (hopefully) fix missing ~/.ssh creation in MATE-MiniDesktop

git-admin at x2go.org git-admin at x2go.org
Wed Mar 20 22:13:16 CET 2019


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 32cb6b15252d44e9277f373934d2d64796cb2de9
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Fri Dec 14 23:25:58 2018 +0100

    (hopefully) fix missing ~/.ssh creation in MATE-MiniDesktop
---
 .../lib/live/config/2270-getsshclientkeysfrommedia      | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia
index 8429935..26726db 100755
--- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia
+++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia
@@ -23,15 +23,16 @@ GetSSHClientKeysFromMedia ()
 							echo -n "\n$(date +'%F | %T | ')'$0' Waiting until minidesktop-init script has finished before we populate '~/.ssh' ." | tee -a /dev/tty8
 							sleep 1
 						done
-					else
-						# create .ssh-Directory in case it doesn't exist
-						#
-						mkdir -p $(readlink -m "$USERHOME/.ssh")
-						chown   $TARGETUSERNAME: \
-							$(readlink -m "$USERHOME/.ssh")
-						chmod   700 \
-							$(readlink -m "$USERHOME/.ssh")
 					fi
+
+					# create .ssh-Directory in case it doesn't exist
+					#
+					mkdir -p $(readlink -m "$USERHOME/.ssh")
+					chown   $TARGETUSERNAME: \
+						$(readlink -m "$USERHOME/.ssh")
+					chmod   700 \
+						$(readlink -m "$USERHOME/.ssh")
+
 					# any keyfile in the config dir will be copied over to live system
 					#
 					for KEYFILE in $1/config/ssh/* $1/ssh/* $1/x2goclient/.ssh/* $1/x2goclient/sshkeys/* $1/.ssh/* ; do

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list