From d78a6b26a5f19aee03fabe7395066965aed48103 Mon Sep 17 00:00:00 2001 From: dkoao Date: Thu, 26 Sep 2019 04:08:58 +0000 Subject: [PATCH] added more clarity to the boolean logic --- setup/system.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/system.sh b/setup/system.sh index 895ce0ae..e96952a2 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -341,14 +341,14 @@ 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 -if [ ${DISABLE_NEXTCLOUD} != "1"]; then +if [ ${DISABLE_NEXTCLOUD} == "1"]; then - cat conf/fail2ban/jails.conf \ + cat conf/fail2ban/jails_no_nextcloud.conf \ | sed "s/PUBLIC_IP/$PUBLIC_IP/g" \ | sed "s#STORAGE_ROOT#$STORAGE_ROOT#" \ > /etc/fail2ban/jail.d/mailinabox.conf else - cat conf/fail2ban/jails_no_nextcloud.conf \ + cat conf/fail2ban/jails.conf \ | sed "s/PUBLIC_IP/$PUBLIC_IP/g" \ | sed "s#STORAGE_ROOT#$STORAGE_ROOT#" \ > /etc/fail2ban/jail.d/mailinabox.conf