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