#bin/sh
DIR=`pwd`
unzip  -o  $DIR/upgrade.zip
echo "unzip  zip source  successed"
\cp  $DIR/phyHostUpgrade/* /var/opt/epcloud/server/store/jobs/phyHostUpgrade/
echo "replace upgrade job  successed"
\cp  $DIR/server/*  /opt/epcloud/server/
systemctl restart epcloud-server
echo "restart epcloud-server  successed"
\cp  $DIR/agent/*  /opt/epcloud/agent/
systemctl restart epcloud-agent
echo "restart epcloud-agent  successed"

