Update index.tsx

This commit is contained in:
Stefan Pejcic 2024-11-22 13:26:39 +01:00 committed by GitHub
parent acd8d3521b
commit 7be6347778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,7 @@ const defaultOptions: InstallOptions = {
email: { value: "", description: "Email address to receive admin logins and future notifications." }, email: { value: "", description: "Email address to receive admin logins and future notifications." },
username: { value: "", description: "Set admin username (by default random generated)." }, username: { value: "", description: "Set admin username (by default random generated)." },
password: { value: "", description: "Set admin password (by default random generated)." }, password: { value: "", description: "Set admin password (by default random generated)." },
"docker-space": { value: "", description: "Specify the size in GB to allocate to Docker." },
"skip-requirements": { value: false, description: "Skip the requirements check." }, "skip-requirements": { value: false, description: "Skip the requirements check." },
"skip-panel-check": { value: false, description: "Skip checking if existing panels are installed." }, "skip-panel-check": { value: false, description: "Skip checking if existing panels are installed." },
"skip-apt-update": { value: false, description: "Skip the APT update." }, "skip-apt-update": { value: false, description: "Skip the APT update." },
@ -64,7 +65,7 @@ const Install: React.FC = () => {
let command = "bash <(curl -sSL https://openpanel.org)"; let command = "bash <(curl -sSL https://openpanel.org)";
for (const [option, config] of Object.entries(installOptions)) { for (const [option, config] of Object.entries(installOptions)) {
if (option !== "version" || (option === "version" && config.value !== latestVersion)) { if (option !== "version" || (option === "version" && config.value !== latestVersion)) {
if (config.value || ["version", "hostname", "email", "screenshots", "post-install"].includes(option)) { if (config.value || ["version", "hostname", "email", "screenshots", "docker-space", "post-install"].includes(option)) {
if (option === "screenshots" && config.value === "local") { if (option === "screenshots" && config.value === "local") {
command += ` --screenshots=local`; command += ` --screenshots=local`;
} else if (option === "screenshots" && config.value === "remote") { } else if (option === "screenshots" && config.value === "remote") {