#!/usr/bin/env bash # TA-Proxmenu - Proxmox Setup Scripts for TA Use action="${1:-}" FOLDER='/opt/idssys/ta-proxmenu' VERS='2026.7.25-16' noupdate=' ' default_interface="$(ip route 2>/dev/null | awk '/^default/ { print $5; exit }')" if [[ -n "$default_interface" ]]; then RNIP="$(ip -4 -o addr show dev "$default_interface" scope global 2>/dev/null | awk '{ sub(/\/.*/, "", $4); print $4; exit }')" else RNIP="" fi VIRTIO_STABLE_URL="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso" VIRTIO_FALLBACK_URL="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.285-1/virtio-win-0.1.285.iso" VIRTIO_DOWNLOAD_URL="$(curl --location --fail --silent --show-error --head \ --connect-timeout 3 --max-time 10 --output /dev/null \ --write-out '%{url_effective}' "$VIRTIO_STABLE_URL" 2>/dev/null)" if [[ -z "$VIRTIO_DOWNLOAD_URL" ]]; then VIRTIO_DOWNLOAD_URL="$VIRTIO_FALLBACK_URL" fi VIRTIO_FILE="${VIRTIO_DOWNLOAD_URL##*/}" S1_VERSION='26_1_1_31' S1_PACKAGE="SentinelAgent_linux_x86_64_v${S1_VERSION}.deb" S1_DOWNLOAD_URL="https://git.scity.us/TAI/files/raw/branch/main/${S1_PACKAGE}" if [[ -d /mnt/pve/PVE-Shared-Storage/template/iso ]]; then DLDIR='/mnt/pve/PVE-Shared-Storage/template/iso' else DLDIR='/var/lib/vz/template/iso' fi # if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then # rm -f /etc/apt/sources.list.d/gyptazy.list /etc/apt/keyrings/gyptazy.asc # echo "deb https://repo.gyptazy.com/stable /" > /etc/apt/sources.list.d/proxlb.list # wget -O /etc/apt/trusted.gpg.d/proxlb.asc https://repo.gyptazy.com/repository.gpg # apt-get update # fi