diff --git a/packages/dream2nix-overrides/nodejs/default.nix b/packages/dream2nix-overrides/nodejs/default.nix index 1b9b1f9..e73bff1 100644 --- a/packages/dream2nix-overrides/nodejs/default.nix +++ b/packages/dream2nix-overrides/nodejs/default.nix @@ -32,7 +32,6 @@ in uptime-kuma.runtime-bugfixes = { patches = [ - ./uptime-kuma/log-in-data-dir.patch ./uptime-kuma/chmod-database.patch ./uptime-kuma/data-dir-concat-with-slash.patch ]; diff --git a/packages/dream2nix-overrides/nodejs/uptime-kuma/log-in-data-dir.patch b/packages/dream2nix-overrides/nodejs/uptime-kuma/log-in-data-dir.patch deleted file mode 100644 index 88cfd5d..0000000 --- a/packages/dream2nix-overrides/nodejs/uptime-kuma/log-in-data-dir.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/server/util-server.js b/server/util-server.js -index 39a2d90..ecb404a 100644 ---- a/server/util-server.js -+++ b/server/util-server.js -@@ -528,7 +528,7 @@ exports.convertToUTF8 = (body) => { - let logFile; - - try { -- logFile = fs.createWriteStream("./data/error.log", { -+ logFile = fs.createWriteStream((process.env.DATA_DIR || ".") + "/error.log", { - flags: "a" - }); - } catch (_) { }