From cbb77ac59d15e954da105f06de0e6992492b54f3 Mon Sep 17 00:00:00 2001 From: hirzidevs Date: Fri, 13 Sep 2024 14:12:35 +0700 Subject: [PATCH] feat(installer): start app after validation is complete --- handlers/installer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/installer.js b/handlers/installer.js index eac0aa4..ff70ac1 100644 --- a/handlers/installer.js +++ b/handlers/installer.js @@ -78,8 +78,7 @@ module.exports = function Installer() { fs.writeFileSync("config.yml", fs.readFileSync("./config.yml", "utf8").replaceAll("Hosting Panel", answers[0]).replaceAll("https://panel.example.com", answers[1]), "utf-8") console.log(" \n" + cliColor.green(`Configuration saved in ${cliColor.blueBright(".env")} and ${cliColor.blueBright("config.yml")}.\n `)); - console.log(cliColor.cyanBright("Please restart the app to continue.")); - process.exit() + require("./app.js")() }).catch(() => { console.log(cliColor.redBright("❌ Invalid Channel ID.")); console.log(" \n" + cliColor.redBright("Please run the installer again and fill in the correct credentials."));