2024-10-10

This commit is contained in:
2024-10-10 12:56:56 +08:00
commit 7b347c848a
2648 changed files with 643965 additions and 0 deletions

23
install/update-hustoj Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
cd /home/judge/git
git pull .
echo "SVN not available from github any more "
echo "using 'sudo bash fixing.sh' to get update from dl.hustoj.com "
exit 1
cd /home/judge/src/core
pkill -9 judged
bash make.sh
cd ../install
chmod +x g++.sh gcc.sh makeout.sh
mysql jol< update.sql
judged
web_user=`grep www /etc/passwd|awk -F: '{print $1}'`
mkdir /var/log/hustoj/
chown -R $web_user /var/log/hustoj
chmod 770 /home/judge/src/web/upload
chown $web_user -R /home/judge/src/web/upload