if [ "$1" = "quartzPro5" ]; then echo "rmove quartzPro5 war package......" rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/webapps/quartzPro.war rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/app/* cp ../package/quartzPro.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/webapps/ elif [ "$1" = "ifish6" ]; then echo "rmove ifish6 war package......" rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/webapps/ifish.war rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/app/* cp ../package/ifish.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/webapps/ elif [ "$1" = "ifish7" ]; then echo "rmove ifish7 war package......" rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/webapps/ifish.war rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/app/* cp ../package/ifish.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/webapps/ elif [ "$1" = "ifishSystem8" ]; then echo "rmove ifishSystem8 war package......" rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/webapps/ifishSystem.war rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/app/* cp ../package/ifishSystem.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/webapps/ elif [ "$1" = "ifishSocket9" ]; then echo "rmove ifishSocket9 war package......" rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/webapps/ifishSocket.war rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/app/* cp ../package/ifishSocket.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/webapps/ else echo "parameter error" fi