diff --git a/documentation/src/pages/install/index.tsx b/documentation/src/pages/install/index.tsx index f790fab4..0141f500 100644 --- a/documentation/src/pages/install/index.tsx +++ b/documentation/src/pages/install/index.tsx @@ -55,22 +55,25 @@ const Install: React.FC = () => { })); }; - const generateInstallCommand = () => { let command = "bash <(curl -sSL https://get.openpanel.co/)"; for (const option in installOptions) { if (option !== "version" || (option === "version" && installOptions[option].value !== latestVersion)) { - if (installOptions[option].value) { + if (installOptions[option].value || ["version", "hostname", "screenshots", "post-install"].includes(option)) { if (option === "screenshots" && installOptions[option].value === "local") { command += ` --screenshots=local`; } else { command += ` --${option.replace(/-/g, '_')}`; + if (installOptions[option].value !== true) { + command += `=${installOptions[option].value}`; + } } } } } return command; }; +