Commit 43508fd2 authored by Valentino Lauciani's avatar Valentino Lauciani
Browse files

bugfix on 'jail.local' file used

parent aec1790c
......@@ -190,9 +190,9 @@ configure_fail2ban()
if [ -f jail.local ]; then
mv jail.local jail.local__original
fi
cat ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail.local | sed "s/Fail2Ban-CNT_OVH/Fail2Ban-Azure-${SERVER_NAME}/g" > ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail.local.new
mv ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail.local.new ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail.local
ln -s ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail.local
cat ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail_azure.local | sed "s/Fail2Ban-Azure-CNT/Fail2Ban-Azure-CNT-${SERVER_NAME}/g" > ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail_azure.local.new
mv ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail_azure.local.new ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail_azure.local
ln -s ${GITBASEDIRCURREPO}/cnt.rm.ingv.it/root/etc/fail2ban/jail_azure.local ./jail.local
fi
# filter.d
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment