svn钩子自动更新

vim /data/svndata/phpjx/hooks/post-commit

1 #!/bin/bash
2 svn up /var/www/html/phpjx/ --username test --password 123456
3 if [ $? == 0 ]
4 then
5 echo "ok" >> /tmp/z.out
6 else
7 echo "error" >> /tmp/z.out
8 fi

chmod +x /data/svndata/phpjx/hooks/post-commit

    A+
发布日期:2021年07月23日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: