From 4ca6da2e5c16213d155fa2ad77848dcd91495216 Mon Sep 17 00:00:00 2001 From: Duncan Hill Date: Mon, 6 Jan 2025 20:45:56 +0000 Subject: [PATCH] Redo: [overrideable url] Initial changes to ct scripts to use environment variable --- ct/2fauth.sh | 3 ++- ct/5etools.sh | 3 ++- ct/actualbudget.sh | 3 ++- ct/adguard.sh | 3 ++- ct/adventurelog.sh | 3 ++- ct/agentdvr.sh | 3 ++- ct/alpine-docker.sh | 3 ++- ct/alpine-grafana.sh | 3 ++- ct/alpine-nextcloud.sh | 3 ++- ct/alpine-vaultwarden.sh | 3 ++- ct/alpine-zigbee2mqtt.sh | 3 ++- ct/alpine.sh | 3 ++- ct/debian.sh | 3 ++- ct/ubuntu.sh | 3 ++- 14 files changed, 28 insertions(+), 14 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index 3ef44999..90d59a1b 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 community-scripts ORG # Author: jkrgr0 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/5etools.sh b/ct/5etools.sh index b0a0df27..faa18f9e 100644 --- a/ct/5etools.sh +++ b/ct/5etools.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 community-scripts ORG # Author: TheRealVira # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/actualbudget.sh b/ct/actualbudget.sh index 8bad74dc..4a0fec9a 100644 --- a/ct/actualbudget.sh +++ b/ct/actualbudget.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/adguard.sh b/ct/adguard.sh index d4d94f59..144567ac 100644 --- a/ct/adguard.sh +++ b/ct/adguard.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 5c168ce4..e6ec5da9 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: MickLesk (Canbiz) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/agentdvr.sh b/ct/agentdvr.sh index 2e5cda1b..026d79d9 100644 --- a/ct/agentdvr.sh +++ b/ct/agentdvr.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/alpine-docker.sh b/ct/alpine-docker.sh index 267066b1..3e2d0194 100644 --- a/ct/alpine-docker.sh +++ b/ct/alpine-docker.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/alpine-grafana.sh b/ct/alpine-grafana.sh index 909ade3d..191a1bc8 100644 --- a/ct/alpine-grafana.sh +++ b/ct/alpine-grafana.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/alpine-nextcloud.sh b/ct/alpine-nextcloud.sh index d41b9e3d..f10c5a75 100644 --- a/ct/alpine-nextcloud.sh +++ b/ct/alpine-nextcloud.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/alpine-vaultwarden.sh b/ct/alpine-vaultwarden.sh index cafb2e4e..c3e90c36 100644 --- a/ct/alpine-vaultwarden.sh +++ b/ct/alpine-vaultwarden.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/alpine-zigbee2mqtt.sh b/ct/alpine-zigbee2mqtt.sh index 4760d94a..0815eaee 100644 --- a/ct/alpine-zigbee2mqtt.sh +++ b/ct/alpine-zigbee2mqtt.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/alpine.sh b/ct/alpine.sh index a89e79f2..b9746225 100644 --- a/ct/alpine.sh +++ b/ct/alpine.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/debian.sh b/ct/debian.sh index fd5dae41..bef29908 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index d3aac33f..9cda552a 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +: "${CSCRIPTS_BASE_URL:=https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" +source <(curl -s "${CSCRIPTS_BASE_URL}/misc/build.func") # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE