This commit is contained in:
CanbiZ
2025-05-26 13:27:40 +02:00
parent 8fec027678
commit 6fb306d8b1
2 changed files with 4 additions and 11 deletions

View File

@@ -33,10 +33,13 @@ load_functions() {
# Function to download & save header files
get_header() {
local app_name=$(echo "${APP,,}" | tr ' ' '-')
local app_type=${APP_TYPE:-ct} # Default zu 'ct' falls nicht gesetzt
local app_type=${APP_TYPE:-vm}
local header_url="https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/${app_type}/headers/${app_name}"
local local_header_path="/usr/local/community-scripts/headers/${app_type}/${app_name}"
echo -e "Fetching header for $app_name from $header_url"
echo -e "Saving to $local_header_path"
mkdir -p "$(dirname "$local_header_path")"
if [ ! -s "$local_header_path" ]; then