From a34e1214580f1a283b853e0b7908855c7fa79ab4 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 19 Nov 2023 20:33:32 +0100 Subject: [PATCH] Add Ubuntu scripts --- ubuntu-20.04/init.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ubuntu-20.04/init.sh b/ubuntu-20.04/init.sh index 01840ea..8a19ef7 100644 --- a/ubuntu-20.04/init.sh +++ b/ubuntu-20.04/init.sh @@ -255,11 +255,11 @@ InstApps() { options+=("zimbra-10" "Need Debian 12 zm-builder" off) options+=("zimbra-10-zpush" "Need zimbra 10" off) options+=("misc-apps" "..." off) - sel=$(whiptail --title "More Apps" --checklist "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) + SEL=$(whiptail --title "More Apps" --checklist "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) # shellcheck disable=SC2181 if [ "$?" = "0" ]; then - for itm in ${sel}; do - case ${itm//\"/} in + for ITM in ${SEL}; do + case ${ITM//\"/} in misc-apps) InstMiscApps;; archived-apps) @@ -267,7 +267,7 @@ InstApps() { *) cd /tmp || exit wget "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}"/"${ITM//\"/}".sh - bash ./"${itm//\"/}".sh "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}";; + bash ./"${ITM//\"/}".sh "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}";; esac done fi @@ -276,13 +276,13 @@ InstMiscApps() { options=() options+=("bind9" "" off) options+=("iperf3" "" off) - sel=$(whiptail --title "Misc Apps" --checklist "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) + SEL=$(whiptail --title "Misc Apps" --checklist "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) # shellcheck disable=SC2181 if [ "$?" = "0" ]; then - for itm in ${sel}; do + for ITM in ${SEL}; do cd /tmp || exit wget "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}"/"${ITM//\"/}".sh - bash ./"${itm//\"/}".sh "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}" + bash ./"${ITM//\"/}".sh "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}" done fi }