Skip to content

Commit b423851

Browse files
committed
ejudge started
1 parent 514e363 commit b423851

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker/entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#! /bin/bash
22

3-
# mkdir /opt/ejudge
4-
# chown user:user /opt/ejudge
5-
63
if [ ! -d /home/judges ]
74
then
85
mkdir -p /home/judges
@@ -60,6 +57,7 @@ then
6057
chmod 600 "${SECRETFILE}"
6158
fi
6259
/opt/ejudge/bin/ejudge-install.sh
60+
/opt/ejudge/bin/ejudge-configure-compilers --batch
6361
fi
6462

6563
if [ "${EJUDGE_MYSQL_USER}" != "" ]
@@ -79,4 +77,7 @@ unset EJUDGE_MYSQL_DATABASE
7977
unset EJUDGE_MYSQL_HOST
8078
unset EJUDGE_MYSQL_PORT
8179

80+
PATH=/opt/ejudge/bin:$PATH
81+
/opt/ejudge/bin/ejudge-control -u ejudge -g ejudge start
82+
8283
/usr/sbin/httpd -DFOREGROUND

0 commit comments

Comments
 (0)