consolidate package and config import,

fix ldap auth template,
add start script and systemd service
This commit is contained in:
2025-02-11 07:09:47 +00:00
parent f7e91d7300
commit 4e720caa0a
7 changed files with 28 additions and 28 deletions

12
src/utils.js Normal file
View File

@@ -0,0 +1,12 @@
import { readFileSync } from "fs";
import { exit } from "process";
export function readJSONFile (path) {
try {
return JSON.parse(readFileSync(path));
}
catch (e) {
console.log(`error: ${path} was not found.`);
exit(1);
}
};