We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 831265c + 46fed57 commit d72d6e3Copy full SHA for d72d6e3
du_setup.sh
@@ -1182,6 +1182,12 @@ EOF
1182
echo "$UFW_PROBES_CONFIG" > "$UFW_FILTER_PATH"
1183
echo "$JAIL_LOCAL_CONFIG" > "$JAIL_LOCAL_PATH"
1184
1185
+ # --- Ensure the log file exists BEFORE restarting the service ---
1186
+ if [[ ! -f /var/log/ufw.log ]]; then
1187
+ touch /var/log/ufw.log
1188
+ print_info "Created empty /var/log/ufw.log to ensure Fail2Ban starts correctly."
1189
+ fi
1190
+
1191
# --- Restart and Verify Fail2ban ---
1192
print_info "Enabling and restarting Fail2Ban to apply new rules..."
1193
systemctl enable fail2ban
0 commit comments