S2OJ/install/bundle/post-commit.sh

7 lines
176 B
Bash
Raw Normal View History

2016-11-17 02:08:31 +00:00
#!/bin/sh
svnusr="our-root"
svnpwd="__our_root_password__"
cd /var/svn/problem/$1/cur/$1
svn update --username $svnusr --password $svnpwd
chown www-data /var/svn/problem/$1 -R