fix: remove dynamic COMMUNITY_SCRIPTS_URL assignment and header creation logic in localagi.sh

This commit is contained in:
John Doe
2026-03-04 12:17:58 -05:00
parent eb95857830
commit 45fd4d2d98

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env bash
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-${COMMUNITY_SCRIPT_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}}"
source <(curl -fsSL "$COMMUNITY_SCRIPTS_URL/misc/build.func")
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: BillyOutlast
@@ -17,19 +16,6 @@ var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_gpu="${var_gpu:-no}"
LOCALAGI_HEADER_PATH="/usr/local/community-scripts/headers/ct/localagi"
if [[ ! -s "$LOCALAGI_HEADER_PATH" ]]; then
mkdir -p "$(dirname "$LOCALAGI_HEADER_PATH")"
cat <<'EOF' >"$LOCALAGI_HEADER_PATH"
__ __ ___ __________
/ / ____ ________ _/ / / | / ____/ _/
/ / / __ \/ ___/ __ `/ / / /| |/ / __ / /
/ /___/ /_/ / /__/ /_/ / / / ___ / /_/ // /
/_____/\____/\___/\__,_/_/ /_/ |_\____/___/
EOF
fi
header_info "$APP"
variables
color