@@ -24,14 +24,23 @@ section_end
2424
2525section_start " Install domserver"
2626make configure
27- ./configure \
28- --with-baseurl=' https://localhost/domjudge/' \
29- --with-domjudge-user=root \
30- --enable-doc-build=no \
31- --enable-judgehost-build=no | tee " $ARTIFACTS " /configure.txt
32-
33- make domserver
34- make install-domserver
27+ if [ " $version " = " all" ]; then
28+ ./configure \
29+ --with-baseurl=' https://localhost/domjudge/' \
30+ --with-domjudge-user=domjudge \
31+ --with-judgehost-chrootdir=${DIR} /chroot/domjudge | tee " $ARTIFACTS " /configure.txt
32+ make build-scripts domserver judgehost docs
33+ make install-domserver install-judgehost install-docs
34+ else
35+ ./configure \
36+ --with-baseurl=' https://localhost/domjudge/' \
37+ --with-domjudge-user=root \
38+ --enable-doc-build=no \
39+ --enable-judgehost-build=no | tee " $ARTIFACTS " /configure.txt
40+ make domserver
41+ make install-domserver
42+ fi
43+
3544section_end
3645
3746section_start " SQL settings"
@@ -116,6 +125,10 @@ elif [ "$version" = "balloon" ]; then
116125elif [ " $version " = " admin" ]; then
117126 # Add admin to admin user
118127 mysql_root " INSERT INTO userrole (userid, roleid) VALUES (1, 1);" domjudge
128+ elif [ " $version " = " all" ]; then
129+ mysql_root " INSERT INTO userrole (userid, roleid) VALUES (1, 1);" domjudge
130+ mysql_root " INSERT INTO userrole (userid, roleid) VALUES (1, 3);" domjudge
131+ mysql_root " UPDATE user SET teamid = 1 WHERE userid = 1;" domjudge
119132fi
120133section_end
121134
0 commit comments