|
@@ -7,7 +7,8 @@ if [ ! -z "${APPNET}" ]; then
|
|
for i in $(hostname -i);do
|
|
for i in $(hostname -i);do
|
|
if [[ $(echo ${i}|cut -d. -f1-3) == $(dig tasks.${ADMIN_HOST}.${APPNET} +short|cut -d. -f1-3) ]];then
|
|
if [[ $(echo ${i}|cut -d. -f1-3) == $(dig tasks.${ADMIN_HOST}.${APPNET} +short|cut -d. -f1-3) ]];then
|
|
# sed -i 's/local.hostname = \${HOSTNAME}.\${APPNET}/local.hostname = ${i}/' /etc/web-registry-portal/application.conf
|
|
# sed -i 's/local.hostname = \${HOSTNAME}.\${APPNET}/local.hostname = ${i}/' /etc/web-registry-portal/application.conf
|
|
- host_ip=${i}
|
|
|
|
|
|
+# host_ip=${i}
|
|
|
|
+ export TASKS_SERVICE_IP=${i}
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
echo $(dig tasks.${ADMIN_HOST}.${APPNET} +short) > /tmp/admin_ip
|
|
echo $(dig tasks.${ADMIN_HOST}.${APPNET} +short) > /tmp/admin_ip
|
|
@@ -21,5 +22,5 @@ if [ ! -z "$*" ]
|
|
then
|
|
then
|
|
exec "$@"
|
|
exec "$@"
|
|
else
|
|
else
|
|
- exec export TASKS_SERVICE_IP=${host_ip};${WEB_REGISTRY_BIN} ${WEB_REGISTRY_CUSTOM_OPTS} ${WEB_REGISTRY_OPTS}
|
|
|
|
|
|
+ exec ${WEB_REGISTRY_BIN} ${WEB_REGISTRY_CUSTOM_OPTS} ${WEB_REGISTRY_OPTS}
|
|
fi
|
|
fi
|