[X2Go-Commits] [live-build-x2go] 127/186: x5250 init isn't working - maybe PATH isn't taking /usr/local/bin into account? Manually setting and restoring PATH before/after check for x5250 presence now

git-admin at x2go.org git-admin at x2go.org
Wed Mar 20 22:55:26 CET 2019


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

x2go pushed a commit to branch feature/mate-minidesktop-stretch
in repository live-build-x2go.

commit c022bbfa92f0442b4fbbc3febd2c5b2efcf9091a
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Thu Jan 17 00:43:56 2019 +0000

    x5250 init isn't working - maybe PATH isn't taking /usr/local/bin into account? Manually setting and restoring PATH before/after check for x5250 presence now
---
 config/includes.chroot/lib/live/config/2911-x5250-config | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2911-x5250-config b/config/includes.chroot/lib/live/config/2911-x5250-config
index ca50019..84bd3a1 100755
--- a/config/includes.chroot/lib/live/config/2911-x5250-config
+++ b/config/includes.chroot/lib/live/config/2911-x5250-config
@@ -8,6 +8,8 @@ X5250Config ()
 
 	X5250SERVERS=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \
 		      awk -F'=' ' /^x5250servers=/ { print $2 } ' | tr -dc 'a-zAZ0-9:.|' | tr '|' ' ')
+	OLDPATH=$PATH
+	PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 	if [ -n "$X5250SERVERS" ] && [ -n "$(which x5250)" ] ; then
 		HOSTCOUNT=0
 		for HOST in $X5250SERVERS; do
@@ -26,6 +28,7 @@ X5250CONFIG
 		HOSTCOUNT=$((HOSTCOUNT+1))
 		done
 	fi
+	PATH=$OLDPATH
 }
 
 X5250Config

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