Add Ubuntu scripts
This commit is contained in:
parent
2406180195
commit
a34e121458
@ -255,11 +255,11 @@ InstApps() {
|
|||||||
options+=("zimbra-10" "Need Debian 12 zm-builder" off)
|
options+=("zimbra-10" "Need Debian 12 zm-builder" off)
|
||||||
options+=("zimbra-10-zpush" "Need zimbra 10" off)
|
options+=("zimbra-10-zpush" "Need zimbra 10" off)
|
||||||
options+=("misc-apps" "..." 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
|
# shellcheck disable=SC2181
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
for itm in ${sel}; do
|
for ITM in ${SEL}; do
|
||||||
case ${itm//\"/} in
|
case ${ITM//\"/} in
|
||||||
misc-apps)
|
misc-apps)
|
||||||
InstMiscApps;;
|
InstMiscApps;;
|
||||||
archived-apps)
|
archived-apps)
|
||||||
@ -267,7 +267,7 @@ InstApps() {
|
|||||||
*)
|
*)
|
||||||
cd /tmp || exit
|
cd /tmp || exit
|
||||||
wget "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}"/"${ITM//\"/}".sh
|
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
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -276,13 +276,13 @@ InstMiscApps() {
|
|||||||
options=()
|
options=()
|
||||||
options+=("bind9" "" off)
|
options+=("bind9" "" off)
|
||||||
options+=("iperf3" "" 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
|
# shellcheck disable=SC2181
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
for itm in ${sel}; do
|
for ITM in ${SEL}; do
|
||||||
cd /tmp || exit
|
cd /tmp || exit
|
||||||
wget "${BASE_URL}"/${DIR_URL}/apps/"${ITM//\"/}"/"${ITM//\"/}".sh
|
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
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user