Владимир Томишинец 5 years ago
parent
commit
19e400ed52
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docker-entrypoint.sh

+ 2 - 1
docker-entrypoint.sh

@@ -8,7 +8,7 @@ if [ ! -z "${APPNET}" ]; 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
 #            host_ip=${i}
-            export TASKS_SERVICE_IP=${i}
+            echo "TASKS_SERVICE_IP=${i}" > /vars.file
         fi
     done
     echo $(dig tasks.${ADMIN_HOST}.${APPNET} +short) > /tmp/admin_ip
@@ -16,6 +16,7 @@ fi
 
 echo "#Dummy" >> /etc/rc.d/init.d/functions
 source /etc/init.d/web-registry-portal status
+source /vars.file
 rm -rf /var/run/web-registry-portal/play.pid
 
 if [ ! -z "$*" ]