From 6c808a56542592eb95ca80225af2411360e05fa9 Mon Sep 17 00:00:00 2001 From: ChiefGyk Date: Wed, 29 Jun 2016 07:26:34 -0400 Subject: [PATCH] fixed unneccessary sudo, added part to load global variables. --- setup/blocklist.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup/blocklist.sh b/setup/blocklist.sh index fcce343f..4bfef8e6 100644 --- a/setup/blocklist.sh +++ b/setup/blocklist.sh @@ -4,9 +4,12 @@ # Added by Alon "ChiefGyk" Ganon # alonganon.info # alon@ganon.me +source setup/functions.sh # load our functions +source /etc/mailinabox.conf # load global vars + cp conf/blocklist/sync-fail2ban /etc/cron.daily/sync-fail2ban chmod a+x /etc/cron.daily/sync-fail2ban time /etc/cron.daily/sync-fail2ban -echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections -echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections -apt_install iptables-persistent \ No newline at end of file +echo iptables-persistent iptables-persistent/autosave_v4 boolean true | debconf-set-selections +echo iptables-persistent iptables-persistent/autosave_v6 boolean true | debconf-set-selections +apt_install iptables-persistent