From 32bd8dfaec57466d9edec419ade5cd535f552513 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 31 Jul 2022 23:19:14 +0200 Subject: [PATCH] packages/uptime-kuma: update patchset --- packages/dream2nix-overrides/nodejs/default.nix | 1 - .../nodejs/uptime-kuma/log-in-data-dir.patch | 13 ------------- 2 files changed, 14 deletions(-) delete mode 100644 packages/dream2nix-overrides/nodejs/uptime-kuma/log-in-data-dir.patch 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 (_) { }