#!/bin/bash getAptPackage(){ printf "\n\n==> Getting environment packages\n" export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y vim ntp zip unzip curl wget build-essential fp-compiler python2.7 python3.10 python3-requests libseccomp-dev openjdk-8-jdk openjdk-11-jdk openjdk-17-jdk } setJudgeConf(){ printf "\n\n==> Setting judger files\n" #specify environment cat > /etc/environment < Doing initial config and start service\n" # Check envs if [ -z "$UOJ_PROTOCOL" -o -z "$UOJ_HOST" -o -z "$JUDGER_NAME" -o -z "$JUDGER_PASSWORD" -o -z "$SOCKET_PORT" -o -z "$SOCKET_PASSWORD" ]; then echo "!! Environment variables not set! Please edit config file by yourself!" else # Set judge_client config file cat >.conf.json <0?1:0 )) done