forked from forkanization/Proxmox-arm64
Update install-command.tsx
This commit is contained in:
@@ -10,8 +10,8 @@ import { basePath } from "@/config/site-config";
|
|||||||
import { getDisplayValueFromType } from "../script-info-blocks";
|
import { getDisplayValueFromType } from "../script-info-blocks";
|
||||||
|
|
||||||
function getInstallCommand(scriptPath = "", isAlpine = false, useGitea = false) {
|
function getInstallCommand(scriptPath = "", isAlpine = false, useGitea = false) {
|
||||||
const githubUrl = `https://raw.githubusercontent.com/community-scripts/${basePath}/main/${scriptPath}`;
|
const githubUrl = `https://raw.githubusercontent.com/asylumexp/Proxmox/main/${scriptPath}`;
|
||||||
const giteaUrl = `https://git.community-scripts.org/community-scripts/${basePath}/raw/branch/main/${scriptPath}`;
|
const giteaUrl = `https://git.community-scripts.org/asylumexp/Proxmox/raw/branch/main/${scriptPath}`;
|
||||||
const url = useGitea ? giteaUrl : githubUrl;
|
const url = useGitea ? giteaUrl : githubUrl;
|
||||||
return isAlpine ? `bash -c "$(curl -fsSL ${url})"` : `bash -c "$(curl -fsSL ${url})"`;
|
return isAlpine ? `bash -c "$(curl -fsSL ${url})"` : `bash -c "$(curl -fsSL ${url})"`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user