From c3754d531cb96e73c4bd74bc441ba4361b9c770d Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 3 Jun 2024 21:33:45 +0200 Subject: [PATCH] Update index.tsx --- documentation/src/pages/install/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/src/pages/install/index.tsx b/documentation/src/pages/install/index.tsx index 5d87d588..e774df19 100644 --- a/documentation/src/pages/install/index.tsx +++ b/documentation/src/pages/install/index.tsx @@ -16,6 +16,7 @@ type InstallOptions = Record; const defaultOptions: InstallOptions = { hostname: { value: "", description: "Set the FQDN hostname." }, version: { value: "", description: "Set a custom OpenPanel version to be installed." }, + email: { value: "", description: "Email address to receive admin logins and future notifications." }, "skip-requirements": { value: false, description: "Skip the requirements check." }, "skip-panel-check": { value: false, description: "Skip checking if existing panels are installed." }, "skip-apt-update": { value: false, description: "Skip the APT update." }, @@ -65,7 +66,7 @@ const Install: React.FC = () => { let command = "bash <(curl -sSL https://get.openpanel.co/)"; for (const [option, config] of Object.entries(installOptions)) { if (option !== "version" || (option === "version" && config.value !== latestVersion)) { - if (config.value || ["version", "hostname", "screenshots", "post-install"].includes(option)) { + if (config.value || ["version", "hostname", "email", "screenshots", "post-install"].includes(option)) { if (option === "screenshots" && config.value === "local") { command += ` --screenshots=local`; } else if (option === "screenshots" && config.value === "remote") {