web静态文件更新脚本

cat upgrade.sh
#! /bin/bash
mv /home/ddcc3/dist /home/ddcc3/bakfile/dist.`date +%y%m%d%H%M%S` && echo yes || echo no &&
unzip -o /home/ddcc3/upfile/dist.zip -d /home/ddcc3/ && echo yes || echo no &&
mv /home/ddcc3/upfile/dist.zip /home/ddcc3/upfile/dist.zip.`date +%y%m%d%H%M%S`