2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

Use CONGO_CLIENT_TYPE to tell goconserver the source of client (#4501)

goconserver could send back message based on the client type
this commit set CONGO_CLIENT_TYPE to xcat to make the message
from goconserver more friendly.
This commit is contained in:
chenglch
2017-12-14 14:25:38 +08:00
committed by Bin Xu
parent db81ff5842
commit 1909c1ed57

View File

@@ -148,7 +148,8 @@ elif [ $USE_GOCONSERVER == "1" ]; then
CONGO_ENV="CONGO_SSL_KEY=$HOME/.xcat/client-cred.pem \
CONGO_SSL_CERT=$HOME/.xcat/client-cred.pem \
CONGO_SSL_CA_CERT=$HOME/.xcat/ca.pem \
CONGO_PORT=12430"
CONGO_PORT=12430 \
CONGO_CLIENT_TYPE=xcat"
if [ "$CONSERVER" == `hostname` ]; then
host=`hostname -s`
if [ $? -ne 0 ]; then