start_stop_docking.sh 774 Bytes
#!/bin/bash
if [ $1 == 'start' ];then
	docker exec -it recv_data_serv /bin/bash -c "sed -i 's/^#*third_party_url/third_party_url/g' /usr/local/tomcat/webapps/recv_data/WEB-INF/classes/special.properties"

	docker exec -it pic_serv /bin/bash -c "sed -i 's/^#*dock_url/dock_url/g' /usr/local/tomcat/webapps/pic-serv/WEB-INF/classes/pic.properties"

	docker restart recv_data_serv pic_serv
elif [ $1 == 'stop' ];then
	docker exec -it recv_data_serv /bin/bash -c "sed -i 's/^#*third_party_url/#third_party_url/g' /usr/local/tomcat/webapps/recv_data/WEB-INF/classes/special.properties"

        docker exec -it pic_serv /bin/bash -c "sed -i 's/^#*dock_url/#dock_url/g' /usr/local/tomcat/webapps/pic-serv/WEB-INF/classes/pic.properties"
	docker restart recv_data_serv pic_serv
fi