diff --git a/allow_networks.sh b/allow_networks.sh index 71edd1e..a537688 100644 --- a/allow_networks.sh +++ b/allow_networks.sh @@ -15,7 +15,7 @@ ip route \ mv /etc/monit.d/monit.conf~ /etc/monit.d/monit.conf # Configure email -grep -q "${EMAIL}" || echo "set alert ${EMAIL}" >> /etc/monitrc +grep -q "${EMAIL}" /etc/monitrc || echo "set alert ${EMAIL}" >> /etc/monitrc # Reload config monit reload