shell脚本自动更新git

gitpull.sh

#!/bin/bash
cd /home/wwwroot/default/mouse && git pull
cd /home/wwwroot/default/sheep && git pull
cd /home/wwwroot/default/lion && git pull
cd /home/wwwroot/default/proxy && git pull
cd /home/wwwroot/default/lion && ./sqlversion

crontab -e 设置定时任务

* * * * * /home/wwwroot/default/db_rc/gitpull.sh

posted @ 2018-04-23 18:06  TBHacker  阅读(3857)  评论(0编辑  收藏  举报