mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-31 12:35:54 +00:00
Compare commits
1 Commits
fix-nodejs
...
chore/remo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65f74bab9e |
@@ -136,7 +136,7 @@ network_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# DNS resolution checks for GitHub-related domains
|
# DNS resolution checks for GitHub-related domains
|
||||||
GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com" "git.community-scripts.org")
|
GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com")
|
||||||
GIT_STATUS="Git DNS:"
|
GIT_STATUS="Git DNS:"
|
||||||
DNS_FAILED=false
|
DNS_FAILED=false
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ TELEMETRY_ERROR_MAX_BYTES=10240
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# detect_repo_source()
|
# detect_repo_source()
|
||||||
#
|
#
|
||||||
# - Dynamically detects which GitHub/Gitea repo the scripts were loaded from
|
# - Dynamically detects which GitHub repo the scripts were loaded from
|
||||||
# - Inspects /proc/$$/cmdline and $0 to find the source URL
|
# - Inspects /proc/$$/cmdline and $0 to find the source URL
|
||||||
# - Maps detected repo to one of three canonical values:
|
# - Maps detected repo to one of three canonical values:
|
||||||
# * "ProxmoxVE" — official community-scripts/ProxmoxVE (production)
|
# * "ProxmoxVE" — official community-scripts/ProxmoxVE (production)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
# execution helpers used throughout the Community-Scripts ecosystem.
|
# execution helpers used throughout the Community-Scripts ecosystem.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# source <(curl -fsSL https://git.community-scripts.org/.../core.func)
|
# source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||||
# load_functions
|
# load_functions
|
||||||
#
|
#
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ network_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# DNS resolution checks for GitHub-related domains (IPv4 and/or IPv6)
|
# DNS resolution checks for GitHub-related domains (IPv4 and/or IPv6)
|
||||||
GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com" "git.community-scripts.org")
|
GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com")
|
||||||
GIT_STATUS="Git DNS:"
|
GIT_STATUS="Git DNS:"
|
||||||
DNS_FAILED=false
|
DNS_FAILED=false
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ declare -A MSG_INFO_SHOWN
|
|||||||
[[ -n "${_CORE_FUNC_LOADED:-}" ]] && return
|
[[ -n "${_CORE_FUNC_LOADED:-}" ]] && return
|
||||||
_CORE_FUNC_LOADED=1
|
_CORE_FUNC_LOADED=1
|
||||||
|
|
||||||
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main}"
|
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"
|
||||||
|
|
||||||
load_api_functions() {
|
load_api_functions() {
|
||||||
if ! declare -f post_to_api_vm >/dev/null 2>&1; then
|
if ! declare -f post_to_api_vm >/dev/null 2>&1; then
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if ! command -v curl >/dev/null 2>&1; then
|
|||||||
apt-get update >/dev/null 2>&1
|
apt-get update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/dev/null 2>&1
|
apt-get install -y curl >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/core.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
|
||||||
load_functions
|
load_functions
|
||||||
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "pve-privilege-converter" "pve"
|
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "pve-privilege-converter" "pve"
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
# Docker VM - Creates a Docker-ready Virtual Machine
|
# Docker VM - Creates a Docker-ready Virtual Machine
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/api.func) 2>/dev/null
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null
|
||||||
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/vm-core.func) 2>/dev/null
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/vm-core.func) 2>/dev/null
|
||||||
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/cloud-init.func) 2>/dev/null || true
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/cloud-init.func) 2>/dev/null || true
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# SCRIPT VARIABLES
|
# SCRIPT VARIABLES
|
||||||
|
|||||||
Reference in New Issue
Block a user