Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2020-09-04 10:05:47 +0300
committerGitHub <noreply@github.com>2020-09-04 10:05:47 +0300
commitc42ec1d992d4ac995c6700affe05ba74cdb99c4c (patch)
treeb53ae82a9916e7e66e064e08b5c124eb89c6dcb8 /apps/fail2ban.sh
parent80dc7b6293f260f6261a6757ead1cfe717fa5ed6 (diff)
add SCRIPT_NAME to all scripts and standardize whiptail-titles (#1400)
Signed-off-by: enoch85 <github@hanssonit.se> Co-authored-by: enoch85 <github@hanssonit.se>
Diffstat (limited to 'apps/fail2ban.sh')
-rw-r--r--apps/fail2ban.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/fail2ban.sh b/apps/fail2ban.sh
index 4a529b53..80364de0 100644
--- a/apps/fail2ban.sh
+++ b/apps/fail2ban.sh
@@ -5,6 +5,7 @@
# shellcheck disable=2034,2059
true
+SCRIPT_NAME="Fail2ban"
# shellcheck source=lib.sh
NC_UPDATE=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
unset NC_UPDATE
@@ -25,7 +26,7 @@ lowest_compatible_nc 13
print_text_in_color "$ICyan" "Checking if Fail2Ban is already installed..."
if is_this_installed fail2ban
then
- choice=$(whiptail --radiolist "It seems like 'Fail2Ban' is already installed.\nChoose what you want to do.\nSelect by pressing the spacebar and ENTER" "$WT_HEIGHT" "$WT_WIDTH" 4 \
+ choice=$(whiptail --title "$TITLE" --radiolist "It seems like 'Fail2Ban' is already installed.\nChoose what you want to do.\nSelect by pressing the spacebar and ENTER" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"Uninstall Fail2Ban" "" OFF \
"Reinstall Fail2Ban" "" ON 3>&1 1>&2 2>&3)