summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangshuai <[email protected]>2023-10-11 17:52:50 +0800
committerzhangshuai <[email protected]>2023-10-11 17:52:50 +0800
commitac9ce28e225a7e943900b187c04c19e5dc3e3f33 (patch)
tree1d96ddbb7e690b2f91c7d7e3170caaca11d55c84
parentd7542b488178b202f5b07bb6889e0431f6fd4946 (diff)
fix: NEZ-3199 同步 nz-build install-talon.sh.template
-rw-r--r--tools/install-talon.sh.template5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/install-talon.sh.template b/tools/install-talon.sh.template
index 644e6df..cdf3e3a 100644
--- a/tools/install-talon.sh.template
+++ b/tools/install-talon.sh.template
@@ -11,6 +11,8 @@ SSL_ENABLED=${sslEnabled}
ASSET_ID=${assetId}
+IP=`hostname -I | tr ' ' ','`
+
if [ ! -z "$REMOTE_PORT" ];then
REMOTE_IP=$REMOTE_IP:$REMOTE_PORT
fi
@@ -121,7 +123,8 @@ function installPackage() {
{
"assetId":"$ASSET_ID",
"port":10092,
- "token":"$TALON_TOKEN"
+ "token":"$TALON_TOKEN",
+ "ip":"$IP"
}
EOF
log yellow 'now regist talon to system with information :'