You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
510 B
Bash
21 lines
510 B
Bash
#!/bin/sh
|
|
|
|
ROOT=/root/.hydro
|
|
|
|
if [ ! -f "$ROOT/addon.json" ]; then
|
|
echo '["@hydrooj/ui-default"]' > "$ROOT/addon.json"
|
|
fi
|
|
|
|
if [ ! -f "$ROOT/config.json" ]; then
|
|
echo '{"host": "oj-mongo", "port": "27017", "name": "hydro", "username": "", "password": ""}' > "$ROOT/config.json"
|
|
fi
|
|
|
|
if [ ! -f "$ROOT/first" ]; then
|
|
echo "for marking use only!" > "$ROOT/first"
|
|
|
|
hydrooj cli user create systemjudge@systemjudge.local root rootroot
|
|
hydrooj cli user setSuperAdmin 2
|
|
fi
|
|
|
|
pm2-runtime start hydrooj
|