#!/bin/bash setLAMPConf(){ printf "\n\n==> Setting LAMP configs\n" #Set MySQL connection config cat >/etc/mysql/conf.d/uoj_mysqld.cnf < Setting web files\n" #Import MySQL database cat >/docker-entrypoint-initdb.d/000-native_password.sql </docker-entrypoint-initdb.d/001-app_uoj233.sql curl $RAW_URL/install/judger/add_judger.sql >/docker-entrypoint-initdb.d/002-add_judger.sql } echo 'Preparing UOJ System db environment...' setLAMPConf;setWebConf