#!/bin/sh
# Author: yangdeping 
#         
# Date: 11/29/2013
#
# upgrade doracloud online

echo "Backup ROOT.war to  /home/    "
cp /home/jieyun/deskpool/tomcat/webapps/ROOT.war  /home/

echo "Download vdi package ......"
curl  https://dl.deskpool.com/ROOT.war -o  /home/jieyun/deskpool/tomcat/webapps/ROOT.war
echo "Reboot server ...."
rm -rf /home/jieyun/deskpool/tomcat/webapps/ROOT
sync
sleep 1
sync
sleep 1
sync
sleep 1
sync
sleep 1
sync
sleep 1
sync
sleep 1
reboot
