[X2Go-Commits] [x2gobroker] 04/07: x2gobroker-daemon-debug: don't fail to start if DAEMON_BIND_ADDRESS is unset
git-admin at x2go.org
git-admin at x2go.org
Fri Mar 28 23:58:42 CET 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gobroker.
commit 21cd416db814166c98868ca7b54fc33e8999dccb
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Mon Mar 24 13:19:05 2014 +0100
x2gobroker-daemon-debug: don't fail to start if DAEMON_BIND_ADDRESS is unset
---
sbin/x2gobroker-daemon-debug | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sbin/x2gobroker-daemon-debug b/sbin/x2gobroker-daemon-debug
index 86225eb..8426ecb 100755
--- a/sbin/x2gobroker-daemon-debug
+++ b/sbin/x2gobroker-daemon-debug
@@ -34,4 +34,8 @@ if [ -e /etc/default/x2gobroker-daemon ]; then
. /etc/default/x2gobroker-daemon
fi
-su - x2gobroker -c "X2GOBROKER_SSL_CERTFILE=\"$X2GOBROKER_SSL_CERTFILE\" X2GOBROKER_SSL_KEYFILE=\"$X2GOBROKER_SSL_KEYFILE\" DAEMON_BIND_ADDRESS=\"$DAEAMON_BIND_ADDRESS\" x2gobroker-daemon -M http -b$DAEMON_BIND_ADDRESS -i $@"
+if [ -n "$DAEMON_BIND_ADDRESS" ]; then
+ su - x2gobroker -c "X2GOBROKER_SSL_CERTFILE=\"$X2GOBROKER_SSL_CERTFILE\" X2GOBROKER_SSL_KEYFILE=\"$X2GOBROKER_SSL_KEYFILE\" DAEMON_BIND_ADDRESS=\"$DAEMON_BIND_ADDRESS\" x2gobroker-daemon -M http -b $DAEMON_BIND_ADDRESS -i $@"
+else
+ su - x2gobroker -c "X2GOBROKER_SSL_CERTFILE=\"$X2GOBROKER_SSL_CERTFILE\" X2GOBROKER_SSL_KEYFILE=\"$X2GOBROKER_SSL_KEYFILE\" x2gobroker-daemon -M http -i $@"
+fi
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
More information about the x2go-commits
mailing list