mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: ignore mongodb stderr
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -463,7 +463,8 @@ ${nixConfBase}`);
|
|||||||
`pm2 start bash --name hydro-sandbox -- -c "ulimit -s unlimited && hydro-sandbox -mount-conf ${process.env.HOME}/.hydro/mount.yaml -http-addr=localhost:5050"`,
|
`pm2 start bash --name hydro-sandbox -- -c "ulimit -s unlimited && hydro-sandbox -mount-conf ${process.env.HOME}/.hydro/mount.yaml -http-addr=localhost:5050"`,
|
||||||
...installAsJudge ? [] : [
|
...installAsJudge ? [] : [
|
||||||
() => console.log(`WiredTiger cache size: ${wtsize}GB`),
|
() => console.log(`WiredTiger cache size: ${wtsize}GB`),
|
||||||
`pm2 start mongod --name mongodb -- --auth --bind_ip 0.0.0.0 --wiredTigerCacheSizeGB=${wtsize}`,
|
// The only thing mongod writes to stderr is 'libcurl no version information available'
|
||||||
|
`pm2 start mongod --name mongodb -e /dev/null -- --auth --bind_ip 0.0.0.0 --wiredTigerCacheSizeGB=${wtsize}`,
|
||||||
() => sleep(1000),
|
() => sleep(1000),
|
||||||
'pm2 start hydrooj',
|
'pm2 start hydrooj',
|
||||||
async () => {
|
async () => {
|
||||||
@@ -571,6 +572,7 @@ ${nixConfBase}`);
|
|||||||
{
|
{
|
||||||
init: 'install.postinstall',
|
init: 'install.postinstall',
|
||||||
operations: [
|
operations: [
|
||||||
|
'echo "layout=1" >/etc/HYDRO_INSTALLER',
|
||||||
'echo "vm.swappiness = 1" >>/etc/sysctl.conf',
|
'echo "vm.swappiness = 1" >>/etc/sysctl.conf',
|
||||||
'sysctl -p',
|
'sysctl -p',
|
||||||
// dont retry this as it usually fails
|
// dont retry this as it usually fails
|
||||||
|
|||||||
Reference in new issue
Block a user