mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
Updates
This commit is contained in:
parent
76e7c8b276
commit
9ddffc0f7f
1 changed files with 3 additions and 3 deletions
|
@ -449,7 +449,7 @@ exports.entryPage = "dashboard";
|
||||||
socket.on("setup", async (username, password, callback) => {
|
socket.on("setup", async (username, password, callback) => {
|
||||||
try {
|
try {
|
||||||
if ((await R.count("user")) !== 0) {
|
if ((await R.count("user")) !== 0) {
|
||||||
throw new Error("Uptime Kuma has been setup. If you want to setup again, please delete the database.");
|
throw new Error("Uptime Kuma has been initialized. If you want to run setup again, please delete the database.");
|
||||||
}
|
}
|
||||||
|
|
||||||
let user = R.dispense("user");
|
let user = R.dispense("user");
|
||||||
|
@ -1339,7 +1339,7 @@ async function initDatabase() {
|
||||||
fs.copyFileSync(Database.templatePath, Database.path);
|
fs.copyFileSync(Database.templatePath, Database.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Connecting to Database");
|
console.log("Connecting to the Database");
|
||||||
await Database.connect();
|
await Database.connect();
|
||||||
console.log("Connected");
|
console.log("Connected");
|
||||||
|
|
||||||
|
@ -1439,7 +1439,7 @@ async function shutdownFunction(signal) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function finalFunction() {
|
function finalFunction() {
|
||||||
console.log("Graceful shutdown successfully!");
|
console.log("Graceful shutdown successful!");
|
||||||
}
|
}
|
||||||
|
|
||||||
gracefulShutdown(server, {
|
gracefulShutdown(server, {
|
||||||
|
|
Loading…
Reference in a new issue