From 050c77a49a39b94e1a9b59b264fbb5527ed4f59c Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Sun, 27 Jun 2021 22:14:57 +0200 Subject: [PATCH] fix sed order --- setup/system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/system.sh b/setup/system.sh index 2720b738..90acf1df 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -347,10 +347,10 @@ systemctl restart systemd-resolved rm -f /etc/fail2ban/jail.local # we used to use this file but don't anymore rm -f /etc/fail2ban/jail.d/defaults-debian.conf # removes default config so we can manage all of fail2ban rules in one config cat conf/fail2ban/jails.conf \ - | sed "s/PUBLIC_IP/$PUBLIC_IP/g" \ - | sed "s/ADMIN_HOME_IP/$ADMIN_HOME_IP/g" \ | sed "s/PUBLIC_IPV6/$PUBLIC_IPV6/g" \ + | sed "s/PUBLIC_IP/$PUBLIC_IP/g" \ | sed "s/ADMIN_HOME_IPV6/$ADMIN_HOME_IPV6/g" \ + | sed "s/ADMIN_HOME_IP/$ADMIN_HOME_IP/g" \ | sed "s#STORAGE_ROOT#$STORAGE_ROOT#" \ > /etc/fail2ban/jail.d/00-mailinabox.conf cp -f conf/fail2ban/filter.d/* /etc/fail2ban/filter.d/