| 
					
				 | 
			
			
				@@ -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 "$*" ] 
			 |