diff --git a/misc/vm-core.func b/misc/vm-core.func index b1e627f..0d4cd87 100644 --- a/misc/vm-core.func +++ b/misc/vm-core.func @@ -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 diff --git a/vm/umbrel-os-vm.sh b/vm/umbrel-os-vm.sh index 90f8b06..f0e0e08 100644 --- a/vm/umbrel-os-vm.sh +++ b/vm/umbrel-os-vm.sh @@ -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