#bin/sh
DIR=`pwd`
unzip  -o  $DIR/upgrade.zip
echo "unzip zip source  success"
\cp  $DIR/svc_server/*  /opt/epcloud/server/
systemctl restart epcloud-server
echo "restart epcloud-server success"
\cp  $DIR/svc_agent/*  /opt/epcloud/agent/
systemctl restart epcloud-agent
echo "patch installed success"

