From 9b92b4765693ca669dd81a4798317094f87bcd55 Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 12 Aug 2022 20:34:25 +0800 Subject: [PATCH] judge: objective: ensure typeof score = number --- install/install.js | 4 ++-- packages/hydrojudge/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/install.js b/install/install.js index ab065813..86026de5 100644 --- a/install/install.js +++ b/install/install.js @@ -141,7 +141,7 @@ To disable this feature, checkout our sourcecode.`); setenv('PATH', `${__env.HOME}/.nix-profile/bin:${__env.PATH}`); }, 'nix-env -iA nixpkgs.busybox', - 'nix-env --set-flag priority 5 busybox', + 'nix-env --set-flag priority 3 busybox', 'nix-env -iA nixpkgs.bash nixpkgs.unzip nixpkgs.zip nixpkgs.diffutils nixpkgs.qrencode', () => { return; // Not implemented yet @@ -238,7 +238,7 @@ To disable this feature, checkout our sourcecode.`); `pm2 start "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY} MINIO_SECRET_KEY=${MINIO_SECRET_KEY} minio server /data/file" --name minio`, 'pm2 start mongod --name mongodb -- --auth --bind_ip 0.0.0.0', () => sleep(1000), - `pm2 start hydro-sandbox -- -mount-conf ${__env.HOME}/.hydro/mount.yaml`, + `pm2 start bash --name hydro-sandbox -- -c "ulimit -s unlimited && hydro-sandbox -mount-conf ${__env.HOME}/.hydro/mount.yaml"`, 'pm2 start hydrooj', 'pm2 startup', 'pm2 save', diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index f276c93c..e410ba5b 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.22.9", + "version": "2.22.10", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git",