biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / monitoring / uptime-kuma / fix-database-permissions.patch
blob21fc4c59f91c23e4443f9d7129309bf2114929ec
1 diff --git a/server/server.js b/server/server.js
2 index 0c9a45e6..cec31c7c 100644
3 --- a/server/server.js
4 +++ b/server/server.js
5 @@ -1583,6 +1583,7 @@ async function initDatabase(testMode = false) {
6 if (! fs.existsSync(Database.path)) {
7 log.info("server", "Copying Database");
8 fs.copyFileSync(Database.templatePath, Database.path);
9 + fs.chmodSync(Database.path, 0o640);
12 log.info("server", "Connecting to the Database");