Skip to content

Commit 31cfd03

Browse files
committed
Use our standard script to create database
1 parent 097f655 commit 31cfd03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/jobs/baseinstall.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ password=mysql_root_password
5454
EOF
5555
cat ~/.my.cnf
5656

57-
mysql_log "CREATE DATABASE IF NOT EXISTS \`domjudge\` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
58-
mysql_log "CREATE USER IF NOT EXISTS \`domjudge\`@'%' IDENTIFIED BY 'domjudge';"
59-
mysql_log "GRANT SELECT, INSERT, UPDATE, DELETE ON \`domjudge\`.* TO 'domjudge'@'%';"
60-
mysql_log "FLUSH PRIVILEGES;"
6157
echo 'unused:sqlserver:domjudge:domjudge:domjudge_db-pw+% #$*)@(!/;,.:3306' > /opt/domjudge/domserver/etc/dbpasswords.secret
6258

59+
/opt/domjudge/domserver/bin/dj_setup_database create-db-users
60+
6361
# Show some MySQL debugging
6462
mysql_log "show databases"
6563
mysql_log "SELECT CURRENT_USER();"

0 commit comments

Comments
 (0)