进入仓库目录,复制post-commit
cd /svn/repos/hooks
cp post-commit.tmpl post-commit
编辑post-commit
REPOS="$1"
REV="$2"
export LC_ALL="zh_CN.UTF-8"
export LANG="en_US.UTF-8"
svn update /usr/share/nginx/html/paidui --username=mgh --password=123456
设置权限
chown svn:svn post-commit
chmod +x post-commit