packages/uptime-kuma: update patchset

This commit is contained in:
Max Headroom 2022-07-31 23:19:14 +02:00
parent bd8cc4f517
commit 32bd8dfaec
2 changed files with 0 additions and 14 deletions

View file

@ -32,7 +32,6 @@ in
uptime-kuma.runtime-bugfixes = { uptime-kuma.runtime-bugfixes = {
patches = [ patches = [
./uptime-kuma/log-in-data-dir.patch
./uptime-kuma/chmod-database.patch ./uptime-kuma/chmod-database.patch
./uptime-kuma/data-dir-concat-with-slash.patch ./uptime-kuma/data-dir-concat-with-slash.patch
]; ];

View file

@ -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 (_) { }