Skip to content

Commit

Permalink
Update install-centos7.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Dec 24, 2017
1 parent 27c0a56 commit 7816a6d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion trunk/install/install-centos7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,17 @@ chown apache /var/lib/php/session

cd /home/judge/src/core
./make.sh
judged

if grep "/usr/bin/judged" /etc/rc.local ; then
echo "auto start judged added!"
else
sed -i "s/exit 0//g" /etc/rc.local
echo "/usr/bin/judged" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local

fi
/usr/bin/judged



reset
Expand Down

0 comments on commit 7816a6d

Please sign in to comment.