#!/usr/bin/bash sudo apt update sudo apt dist-upgrade -y sudo apt install -y lvm2 zsh cloud-utils xfsprogs jq hstr ufw function what_to_do() { echo -ne " MAIN MENU 1) Install K8s 2) Install NFS Server 0) Exit Choose an option: " read -r ans case $ans in 1) echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>" echo "initializing K8s Master Set-Up" source <(curl -sk https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/initk8s.sh) ;; 2) echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>" echo "initializing K8s Worker Set-Up" source <(curl -sk https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/init_nfs_server.sh) ;; 0) echo "Bye bye." exit 0 ;; *) echo "Wrong option." what_to_do ;; esac } what_to_do