Commit 2590dcac authored by 吴贤德's avatar 吴贤德

scripts

parent 20753cfb
#!/bin/bash
:<<!
crontab -e : 添加定时任务(5分钟拉取一次)
*/5 * * * * /soooner/hotel/Scripts/autopull.sh > /dev/null 2>&1
!
cd /soooner/hotel
git fetch --all
git reset --hard origin/develop
git pull origin develop
timepull=`date '+%Y-%m-%d %H:%M:%S'`
echo "$timepull pull ok!" >> ./autopull.log
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment