mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
update install script
This commit is contained in:
1 parent
d57116692b
commit
0c51e7d5f6
3 files changed
+9
-9
No files matched your search
@@ -43,8 +43,8 @@ rm /tmp/createUser.js
|
||||
echo "pm2 stop mongod"
|
||||
pm2 stop mongod >/dev/null
|
||||
pm2 del mongod >/dev/null
|
||||
echo 'pm2 start "mongod --auth"'
|
||||
pm2 start "mongod --auth"
|
||||
echo 'Starting mongodb'
|
||||
pm2 start "mongod --auth --bind_ip 0.0.0.0" --name mongodb
|
||||
|
||||
# Install Compiler
|
||||
echo 'Installing g++'
|
||||
@@ -56,7 +56,7 @@ echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v0.7.1/executorserver-amd64 -O /usr/bin/sandbox
|
||||
chmod +x /usr/bin/sandbox
|
||||
pm2 start "/usr/bin/sandbox"
|
||||
pm2 start sandbox
|
||||
mkdir ~/.hydro
|
||||
echo "{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"name\":\"hydro\",\"username\":\"hydro\",\"password\":\"$db_password\"}" >~/.hydro/config.json
|
||||
echo '["@hydrooj/ui-default","@hydrooj/hydrojudge"]' >~/.hydro/addon.json
|
||||
|
||||
@@ -43,8 +43,8 @@ rm /tmp/createUser.js
|
||||
echo "pm2 stop mongod"
|
||||
pm2 stop mongod >/dev/null
|
||||
pm2 del mongod >/dev/null
|
||||
echo 'pm2 start "mongod --auth"'
|
||||
pm2 start "mongod --auth"
|
||||
echo 'Starting mongodb'
|
||||
pm2 start "mongod --auth --bind_ip 0.0.0.0" --name mongodb
|
||||
|
||||
# Install Compiler
|
||||
echo 'Installing g++'
|
||||
@@ -56,7 +56,7 @@ echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v0.7.1/executorserver-amd64 -O /usr/bin/sandbox
|
||||
chmod +x /usr/bin/sandbox
|
||||
pm2 start "/usr/bin/sandbox"
|
||||
pm2 start sandbox
|
||||
mkdir ~/.hydro
|
||||
echo "{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"name\":\"hydro\",\"username\":\"hydro\",\"password\":\"$db_password\"}" >~/.hydro/config.json
|
||||
echo '["@hydrooj/ui-default","@hydrooj/hydrojudge"]' >~/.hydro/addon.json
|
||||
|
||||
@@ -42,8 +42,8 @@ rm /tmp/createUser.js
|
||||
echo "pm2 stop mongod"
|
||||
pm2 stop mongod >/dev/null
|
||||
pm2 del mongod >/dev/null
|
||||
echo 'pm2 start "mongod --auth"'
|
||||
pm2 start "mongod --auth"
|
||||
echo 'Starting mongodb'
|
||||
pm2 start "mongod --auth --bind_ip 0.0.0.0" --name mongodb
|
||||
|
||||
# Install Compiler
|
||||
echo 'Installing g++'
|
||||
@@ -55,7 +55,7 @@ echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v0.7.1/executorserver-amd64 -O /usr/bin/sandbox
|
||||
chmod +x /usr/bin/sandbox
|
||||
pm2 start "/usr/bin/sandbox"
|
||||
pm2 start sandbox
|
||||
mkdir ~/.hydro
|
||||
echo "{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"name\":\"hydro\",\"username\":\"hydro\",\"password\":\"$db_password\"}" >~/.hydro/config.json
|
||||
echo '["@hydrooj/ui-default","@hydrooj/hydrojudge"]' >~/.hydro/addon.json
|
||||
|
||||
Reference in new issue
Block a user