online更新
#!/bin/bash
cd /home/www
git clone git@git.dajxyl.com:mahui/dajx-official.git
cd /home/www/biglove-home
git checkout master
git pull
[ ! -e /home/www/biglove-home/home/data/sql/update.sql ] && echo "file not exist" && exit 2
mysql -uroot -proot <<ENDTAG
use dajx-ow;
source /home/www/biglove-home/home/data/sql/update.sql;
ENDTAG
[ ! -d /server/scripts ] && mkdir -p /server/scripts
cd /server/scripts && rm -rf ./*
git clone git@git.dajxyl.com:dajx/prj-utils.git . && rm -rf .git
bash dumpconfig.sh pre root