fix: fix the wrong svn password (#9)

Due to historical reasons,the password for problem will be refresh by the web side after it created.So the svn password should use only one. And the last hotfix caused some strange problem. Fix it.
This commit is contained in:
Igronemyk 2018-01-01 17:14:15 +08:00 committed by ceba
parent 349f8471e1
commit bea9508a26

View File

@ -7,7 +7,6 @@ _database_password_=root
_judger_socket_port_=2333
_judger_socket_password_=$(genRandStr 10)
_main_judger_password_=$(genRandStr 32)
_svn_ourroot_password_=$(genRandStr 10)
_svn_certroot_password_=$(genRandStr 32)
getAptPackage(){
@ -112,7 +111,7 @@ password-db = passwd
EOD
svnusr="our-root"
svnpwd="$_svn_ourroot_password_"
svnpwd="$_svn_certroot_password_"
cat >\$path/conf/passwd <<EOD
[users]
@ -133,7 +132,7 @@ UOJEOF
cat >/var/svn/problem/post-commit.sh <<UOJEOF
#!/bin/sh
svnusr="our-root"
svnpwd="$_svn_ourroot_password_"
svnpwd="$_svn_certroot_password_"
cd /var/svn/problem/\$1/cur/\$1
svn update --username \$svnusr --password \$svnpwd
chown www-data /var/svn/problem/\$1 -R