Removing old script and updating arch-setup

This commit is contained in:
2025-05-27 09:43:21 +02:00
parent 6150b37ae2
commit 6f36ca0848
5 changed files with 462 additions and 805 deletions

View File

@@ -21,18 +21,18 @@ if ! command -v podman &>/dev/null && ! command -v docker &>/dev/null; then
docker)
if [[ $DISTRO =~ (debian|ubuntu) ]]; then
sudo apt install docker.io -y
elif [[ $DISTRO == "fedora" ]]; then
elif [[ $DISTRO == "fedora" ]]; then
sudo dnf install docker -y
elif [[ $DISTRO == "arch" ]]; then
elif [[ $DISTRO == "arch" ]]; then
sudo pacman -S --needed docker --noconfirm
fi
;;
podman)
if [[ $DISTRO =~ (debian|ubuntu) ]]; then
sudo apt install podman -y
elif [[ $DISTRO == "fedora" ]]; then
elif [[ $DISTRO == "fedora" ]]; then
sudo dnf install podman -y
elif [[ $DISTRO == "arch" ]]; then
elif [[ $DISTRO == "arch" ]]; then
sudo pacman -S --needed podman --noconfirm
fi
;;
@@ -46,10 +46,9 @@ OPTIONS=(
"fedora-rawhide" "Fedora Rawhide" off
"almalinux" "AlmaLinux" off
"opensuse-tumbleweed" "OpenSUSE Tumbleweed" off
"steamos" "SteamOS" off
"void" "Void Linux" off
)
CHOICES=$(whiptail --title "Select Containers" --checklist "Choose the containers you want to setup" 20 78 7 "${OPTIONS[@]}" 3>&1 1>&2 2>&3)
CHOICES=$(whiptail --title "Select Containers" --checklist "Choose the containers you want to setup" 15 60 6 "${OPTIONS[@]}" 3>&1 1>&2 2>&3)
for CHOICE in $CHOICES; do
CHOICE=$(echo $CHOICE | tr -d '"')