From f9751d0c01d4334950ea2f933f8c3a3034a0b597 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 11 Jan 2022 19:15:28 +0800 Subject: [PATCH] Fix FBSD to BSD https://github.com/louislam/uptime-kuma/pull/1155#issuecomment-1009544236 --- extra/healthcheck.js | 4 ++-- server/server.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/healthcheck.js b/extra/healthcheck.js index c6e8a349..06c87394 100644 --- a/extra/healthcheck.js +++ b/extra/healthcheck.js @@ -1,7 +1,7 @@ /* * This script should be run after a period of time (180s), because the server may need some time to prepare. */ -const { FBSD } = require("../server/util-server"); +const { BSD } = require("../server/util-server"); process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; @@ -21,7 +21,7 @@ if (sslKey && sslCert) { let hostname = process.env.UPTIME_KUMA_HOST; // Also read HOST if not FreeBSD, as HOST is a system environment variable in FreeBSD -if (!hostname && !FBSD) { +if (!hostname && !BSD) { hostname = process.env.HOST; } diff --git a/server/server.js b/server/server.js index 868bbd5e..f4e2b72a 100644 --- a/server/server.js +++ b/server/server.js @@ -41,7 +41,7 @@ console.log("Importing this project modules"); debug("Importing Monitor"); const Monitor = require("./model/monitor"); debug("Importing Settings"); -const { getSettings, setSettings, setting, initJWTSecret, checkLogin, startUnitTest, FBSD, errorLog } = require("./util-server"); +const { getSettings, setSettings, setting, initJWTSecret, checkLogin, startUnitTest, BSD, errorLog } = require("./util-server"); debug("Importing Notification"); const { Notification } = require("./notification");