From 0c51e7d5f66b6a7b82d2f7cfc81c1c9bf57df3db Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 30 Nov 2020 22:09:50 +0800 Subject: [PATCH] update install script --- install/ubuntu-1604.sh | 6 +++--- install/ubuntu-1804.sh | 6 +++--- install/ubuntu-2004.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/install/ubuntu-1604.sh b/install/ubuntu-1604.sh index d529752c6..a739ca35b 100644 --- a/install/ubuntu-1604.sh +++ b/install/ubuntu-1604.sh @@ -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 diff --git a/install/ubuntu-1804.sh b/install/ubuntu-1804.sh index 332e01bb7..25c4d9c03 100644 --- a/install/ubuntu-1804.sh +++ b/install/ubuntu-1804.sh @@ -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 diff --git a/install/ubuntu-2004.sh b/install/ubuntu-2004.sh index 45b6c7e15..706fd5f34 100644 --- a/install/ubuntu-2004.sh +++ b/install/ubuntu-2004.sh @@ -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