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

View File

@ -35,16 +35,6 @@ function error_handler() {
cleanup_vmid
}
get_valid_nextid
cleanup_vmid
cleanup
post_update_to_api "done" "none"
[[ -n "${TEMP_DIR:-}" && -d "$TEMP_DIR" ]] && rm -rf "$TEMP_DIR"
check_root
pve_check
arch_check
ssh_check
TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null
if whiptail --backtitle "Proxmox VE Helper Scripts" --title "Umbrel OS VM" --yesno "This will create a New Umbrel OS VM. Proceed?" 10 58; then