mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update index.tsx
This commit is contained in:
@@ -59,11 +59,11 @@ const Install: React.FC = () => {
|
||||
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 (option === "screenshots" && installOptions[option].value === "local") { // Modified
|
||||
command += ` --screenshots=local`; // Modified
|
||||
if (installOptions[option].value !== "") {
|
||||
if (option === "screenshots" && installOptions[option].value === "local") {
|
||||
command += ` --screenshots=local`;
|
||||
} else if (option !== "screenshots") {
|
||||
command += ` --${option.replace(/-/g, '_')}=${installOptions[option].value}`;
|
||||
command += ` --${option}${installOptions[option].value === true ? '' : `=${installOptions[option].value}`}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -71,6 +71,7 @@ const Install: React.FC = () => {
|
||||
return command;
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<CommonLayout>
|
||||
<Head title="Install | OpenPanel">
|
||||
|
||||
Reference in New Issue
Block a user