consolidate package and config import,

fix ldap auth template,
add start script and systemd service
This commit is contained in:
2024-01-11 00:07:35 +00:00
parent f556de9a0c
commit 0fe0fd97a6
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);
}
};