10 lines
360 B
Bash
10 lines
360 B
Bash
BANUNBAN=$(whiptail --title "Add Ban / Unban to Mystic" --radiolist --cancel-button Exit-Script "Choose Fail2Ban IpBan No" 12 58 5 \
|
|
"fail2ban" "Add Fail2Ban" ON \
|
|
"ipban" "Add IpBan" OFF \
|
|
"No" "Don't add IP Banning" OFF \
|
|
3>&1 1>&2 2>&3)
|
|
exitstatus=$?
|
|
if [ $exitstatus = 0 ]; then
|
|
echo -e "${DGN}Add Fail2Ban: ${BGN}$BANUNBAN${CL}"
|
|
fi
|