diff --git a/install.sh b/install.sh index 01073c5..3e82468 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash + + # Setup script environment set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell @@ -10,6 +12,15 @@ alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR trap cleanup EXIT +#remove susbcription +rm -rf /etc/apt/sources.list.d/pve-enterprise.list +#add pve-no +echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list +apt-get update +apt-get install -y zip unzip parted util-linux + + + function error_exit() { trap - ERR local DEFAULT='Unknown failure occured.'