[X2Go-Commits] [live-build-x2go] 87/108: the move of x2gothinclient_sessions to x2gothinclient_sessions_old must only be triggered when we're touching an external interface, not "loopback" or similar

git-admin at x2go.org git-admin at x2go.org
Wed Mar 20 22:13:24 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 990abda011249a46ff66f1169034c633843e1d60
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sat Jan 19 15:36:26 2019 +0000

    the move of x2gothinclient_sessions to x2gothinclient_sessions_old must only be triggered when we're touching an external interface, not "loopback" or similar
---
 config/includes.chroot/etc/network/if-up.d/0400-getsessions | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/config/includes.chroot/etc/network/if-up.d/0400-getsessions b/config/includes.chroot/etc/network/if-up.d/0400-getsessions
index 66133ca..660b56a 100755
--- a/config/includes.chroot/etc/network/if-up.d/0400-getsessions
+++ b/config/includes.chroot/etc/network/if-up.d/0400-getsessions
@@ -1,6 +1,10 @@
 #!/bin/bash
 export TERM=linux;
 
+if [ "$METHOD" = "loopback" ] || [ "$METHOD" = "none" ]; then
+	exit 0
+fi
+
 SESSIONSURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \
 	      awk -F'=' ' /^sessionsurl=/ { print $2 }' | \
 	      tr -dc 'a-zA-Z0-9.:/?%_\-')
@@ -14,10 +18,6 @@ if [ -n "$SESSIONSURL" ] && [ -d /etc/x2go ] ; then
 	fi
 	SESSIONSDESTINATION=/etc/x2go/x2gothinclient_sessions_new
 
-	if [ "$METHOD" = "loopback" ] || [ "$METHOD" = "none" ]; then
-		exit 0
-	fi
-
 	(
 		while ! [ -c /dev/tty8 ] ; do
 			echo -en "\n$(date +'%F | %T | ')'$0' is waiting for tty8 to become available."

--
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