Skip to content

Commit 9cb471a

Browse files
authored
Use -f instead --force=yes (hestiacp#4097)
* Use -f instead --force=yes Due to -f not requiring a option it doesn't liked it as --force see hestiacp#4096 * use --force instead ... * Can't use = It should be: --apache no instead --apache=no
1 parent 5187e79 commit 9cb471a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/.vitepress/theme/components/InstallBuilder.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,14 @@ watchEffect(() => {
109109
let cmd = "bash hst-install.sh";
110110
for (const [key, { enabled, value }] of Object.entries(selectedOptions.value)) {
111111
const opt = options.find((o) => o.flag === key);
112-
113-
if (!opt.type || opt.type === "checkbox") {
112+
if (opt.flag == "force" && enabled) {
113+
cmd += ` --force`;
114+
} else if (!opt.type || opt.type === "checkbox") {
114115
if (enabled !== (opt.default === "yes")) {
115-
cmd += ` --${key}=${enabled ? "yes" : "no"}`;
116+
cmd += ` --${key} ${enabled ? "yes" : "no"}`;
116117
}
117118
} else if (enabled && value !== opt.default) {
118-
cmd += ` --${key}=${value}`;
119+
cmd += ` --${key} ${value}`;
119120
}
120121
}
121122
installCommand.value = cmd;

0 commit comments

Comments
 (0)