put bash in for proxmox

This commit is contained in:
Muhammad Ibrahim
2025-11-18 21:46:37 +00:00
parent aaed443081
commit 6f7dbdb04b

View File

@@ -1586,7 +1586,7 @@ const Integrations = () => {
<div className="flex items-center gap-2">
<input
type="text"
value={`curl ${curl_flags} "${getEnrollmentUrl()}" | sh`}
value={`curl ${curl_flags} "${getEnrollmentUrl()}" | ${selected_script_type === "proxmox-lxc" ? "bash" : "sh"}`}
readOnly
className="flex-1 px-3 py-2 border border-secondary-300 dark:border-secondary-600 rounded-md bg-secondary-50 dark:bg-secondary-900 text-secondary-900 dark:text-white font-mono text-xs"
/>
@@ -1594,7 +1594,7 @@ const Integrations = () => {
type="button"
onClick={() =>
copy_to_clipboard(
`curl ${curl_flags} "${getEnrollmentUrl()}" | sh`,
`curl ${curl_flags} "${getEnrollmentUrl()}" | ${selected_script_type === "proxmox-lxc" ? "bash" : "sh"}`,
"enrollment-command",
)
}