From fca2be09b52bd5d1a3d3884b63e60bb0c3077950 Mon Sep 17 00:00:00 2001 From: buildplan Date: Mon, 17 Nov 2025 11:20:44 +0000 Subject: [PATCH] fix shellcheck printf warning --- du_setup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/du_setup.sh b/du_setup.sh index c1be1f4..0316b71 100644 --- a/du_setup.sh +++ b/du_setup.sh @@ -3768,14 +3768,14 @@ EOF if [[ $INVALID_COUNT -gt 0 ]] || confirm "Show instructions for adding IPs later?" "n"; then printf "\n" print_info "To add more IP addresses to Fail2Ban ignore list later:" - printf "${CYAN}1. Edit the configuration file:${NC}\n" - printf " ${BOLD}sudo nano /etc/fail2ban/jail.local${NC}\n" - printf "${CYAN}2. Update the 'ignoreip' line under [DEFAULT]:${NC}\n" - printf " ${BOLD}ignoreip = 127.0.0.1/8 ::1 YOUR_IP_HERE${NC}\n" - printf "${CYAN}3. Restart Fail2Ban:${NC}\n" - printf " ${BOLD}sudo systemctl restart fail2ban${NC}\n" - printf "${CYAN}4. Verify the configuration:${NC}\n" - printf " ${BOLD}sudo fail2ban-client status${NC}\n" + printf "%s1. Edit the configuration file:%s\n" "$CYAN" "$NC" + printf " %ssudo nano /etc/fail2ban/jail.local%s\n" "$BOLD" "$NC" + printf "%s2. Update the 'ignoreip' line under [DEFAULT]:%s\n" "$CYAN" "$NC" + printf " %signoreip = 127.0.0.1/8 ::1 YOUR_IP_HERE%s\n" "$BOLD" "$NC" + printf "%s3. Restart Fail2Ban:%s\n" "$CYAN" "$NC" + printf " %ssudo systemctl restart fail2ban%s\n" "$BOLD" "$NC" + printf "%s4. Verify the configuration:%s\n" "$CYAN" "$NC" + printf " %ssudo fail2ban-client status%s\n" "$BOLD" "$NC" printf "\n" log "Displayed post-installation Fail2Ban instructions." fi