Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if (!head) return;
const base = `https://raw.githubusercontent.com/${head.full_name}/${pr.head.ref}`;
const scripts = 'https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main';
const scripts = 'https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main';
const files = await github.paginate(github.rest.pulls.listFiles, {
owner: context.repo.owner, repo: context.repo.repo, pull_number: pr.number,
Expand Down
2 changes: 1 addition & 1 deletion core/build.func
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
[[ -n "${_LXC_BUILD_DISPATCHED:-}" ]] && return
_LXC_BUILD_DISPATCHED=1

_CS_DEFAULT_URL="${_CS_DEFAULT_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
_CS_DEFAULT_URL="${_CS_DEFAULT_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"
_CS_CORE_DEFAULT_URL="${_CS_CORE_DEFAULT_URL:-https://raw.githubusercontent.com/community-scripts/core/main}"

# ── Engine layout ─────────────────────────────────────────────────────────────
Expand Down
4 changes: 2 additions & 2 deletions core/core.func
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ write_update_entrypoint() {
[[ -z "$name" ]] && return 0

local base core_url website
base="$(_cs_live_base "${base_override:-${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}}")"
base="$(_cs_live_base "${base_override:-${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}}")"
core_url="${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}"
website="${COMMUNITY_SCRIPTS_WEBSITE_URL:-https://community-scripts.org}"

Expand Down Expand Up @@ -609,7 +609,7 @@ _cs_scripts_ref_line() {
[[ -n "$url" ]] || return 0

# Both official mains count as default, not just one literal: _CS_DEFAULT_URL
# is not exported either, and CI rewrites VED to VE on promotion.
# is not exported either, and ProxmoxVED scripts pin their own.
for d in "${_CS_DEFAULT_URL:-}" \
https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main \
https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main; do
Expand Down
3 changes: 2 additions & 1 deletion docs/loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ location is deliberate — conflating the two is what used to break local
([`host/source-origin.func`](../host/source-origin.func)). GitHub remotes
only; a checkout hosted anywhere else needs the URL set by hand.
3. **Defaults** — `community-scripts/core@main` for the engine,
`community-scripts/ProxmoxVED@main` for the scripts
`community-scripts/ProxmoxVE@main` for the scripts. ProxmoxVED and Incus
scripts override the latter with `_CS_DEFAULT_URL` on their second line.

## Environment variables

Expand Down
2 changes: 1 addition & 1 deletion incus/build.func
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[[ -n "${_INCUS_BUILD_FUNC_LOADED:-}" ]] && return
_INCUS_BUILD_FUNC_LOADED=1

INCUS_COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
INCUS_COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"

# Mark update-mode when we are inside an Incus container (not the host daemon).
if declare -f is_incus_container >/dev/null 2>&1 && is_incus_container; then
Expand Down
2 changes: 1 addition & 1 deletion incus/core.func
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
[[ -n "${_INCUS_CORE_FUNC_LOADED:-}" ]] && return
_INCUS_CORE_FUNC_LOADED=1

INCUS_COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
INCUS_COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"

# Load upstream misc/core.func for full helper parity (prompt_*, dev-mode, etc.).
# Incus-specific behavior is provided through incus_* functions and aliases below.
Expand Down
2 changes: 1 addition & 1 deletion incus/tools.func
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[[ -n "${_INCUS_TOOLS_FUNC_LOADED:-}" ]] && return
_INCUS_TOOLS_FUNC_LOADED=1

INCUS_COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
INCUS_COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"

# Load Incus core first so msg_*/silent/catch_errors aliases are available.
if [[ -z "${_INCUS_CORE_FUNC_LOADED:-}" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions lxc/install.func
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ _bootstrap() {
# Two roots: the engine (core) and the scripts live in separate repos, and
# inside the container there is no resolver — the host exports both bases.
# Override either independently for fork/branch testing.
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"
COMMUNITY_SCRIPTS_CORE_URL="${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}"

# A TMPDIR pointing at something that does not exist kills every mktemp in the
Expand Down Expand Up @@ -1819,7 +1819,7 @@ EOF
write_update_entrypoint "$app" "$update_script_name"
else
# Defensive fallback if core.func is not loaded: legacy direct-pull entrypoint.
echo "bash -c \"\$(curl -fsSL ${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}/ct/${update_script_name}.sh)\"" >/usr/bin/update
echo "bash -c \"\$(curl -fsSL ${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}/ct/${update_script_name}.sh)\"" >/usr/bin/update
chmod +x /usr/bin/update
fi

Expand Down
2 changes: 1 addition & 1 deletion misc/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ _cs_github_base() {
esac
}

BASE="$(_cs_github_base "${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}")"
BASE="$(_cs_github_base "${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}")"
export COMMUNITY_SCRIPTS_URL="$BASE"
WEBSITE="${COMMUNITY_SCRIPTS_WEBSITE_URL:-https://community-scripts.org}"

Expand Down
4 changes: 2 additions & 2 deletions pve/vm-core.func
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _VM_CORE_DISPATCHED=1
# that does not itself need downloading first. See core/build.func.
_CS_CURL_RETRY=(--retry 3 --retry-delay 1 --retry-connrefused --connect-timeout 10)

COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"

if command -v pveversion &>/dev/null; then
:
Expand Down Expand Up @@ -58,7 +58,7 @@ SPINNER_MSG=""
[[ -n "${_CORE_FUNC_LOADED:-}" ]] && return
_CORE_FUNC_LOADED=1

COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"

load_api_functions() {
if ! declare -f post_to_api_vm >/dev/null 2>&1; then
Expand Down
2 changes: 1 addition & 1 deletion ui/build-ui.func
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ variables() {

# Configurable base URL for development — override with COMMUNITY_SCRIPTS_URL
# See docs/DEV_MODE.md for details
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}"
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"

# Repeated per file rather than shared: there is nowhere to put a shared copy
# that does not itself need downloading first. See core/build.func.
Expand Down
Loading