https://bugs.koozali.org/show_bug.cgi?id=12008
Bug ID: 12008
Summary: add contrib to backup list
Classification: Contribs
Product: SME Contribs
Version: 10.0
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-fail2ban
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
# smeserver-fail2ban
if [ -d /etc/fail2ban/action.d ]; then
for F in $(ls /etc/fail2ban/action.d/);do
rpm -qf /etc/fail2ban/action.d/$F >/dev/null 2>&1 || echo
/etc/fail2ban/action.d/$F >> dir.list
done
fi
if [ -d /etc/fail2ban/fail2ban.d ]; then
for F in $(ls /etc/fail2ban/fail2ban.d/);do
rpm -qf /etc/fail2ban/fail2ban.d/$F >/dev/null 2>&1 || echo
/etc/fail2ban/fail2ban.d/$F >> dir.list
done
fi
if [ -d /etc/fail2ban/filter.d ]; then
for F in $(ls /etc/fail2ban/filter.d/);do
rpm -qf /etc/fail2ban/filter.d/$F >/dev/null 2>&1 || echo
/etc/fail2ban/filter.d/$F >> dir.list
done
fi
if [ -d /etc/fail2ban/jail.d ]; then
for F in $(ls /etc/fail2ban/jail.d/);do
rpm -qf /etc/fail2ban/jail.d/$F >/dev/null 2>&1 || echo
/etc/fail2ban/jail.d/$F >> dir.list
done
fi
so add to createlink
use esmith::Build::Backup qw(:all);
backup_includes("smeserver-fail2ban", qw(
/etc/fail2ban/action.d
/etc/fail2ban/fail2ban.d
/etc/fail2ban/filter.d
/etc/fail2ban/jail.d
));
backup_excludes("smeserver-fail2ban", qw(
/etc/fail2ban/action.d/smeserver-iptables.conf
/etc/fail2ban/action.d/smeserver-sendmail.conf
/etc/fail2ban/filter.d/apache-auth.local
/etc/fail2ban/filter.d/apache-scan.conf
/etc/fail2ban/filter.d/apache-xmlrpc.conf
/etc/fail2ban/filter.d/lemonldap-ng.conf
/etc/fail2ban/filter.d/qpsmtpd.conf
/etc/fail2ban/filter.d/smanager.conf
/etc/fail2ban/filter.d/sshd-ddos.conf
/etc/fail2ban/filter.d/wordpress-hard.conf
/etc/fail2ban/filter.d/wordpress-soft.conf
/etc/fail2ban/action.d/abuseipdb.conf
/etc/fail2ban/action.d/apf.conf
/etc/fail2ban/action.d/badips.conf
/etc/fail2ban/action.d/badips.py
/etc/fail2ban/action.d/badips.pyc
/etc/fail2ban/action.d/badips.pyo
/etc/fail2ban/action.d/blocklist_de.conf
/etc/fail2ban/action.d/cloudflare.conf
/etc/fail2ban/action.d/dshield.conf
/etc/fail2ban/action.d/dummy.conf
/etc/fail2ban/action.d/firewallcmd-allports.conf
/etc/fail2ban/action.d/firewallcmd-common.conf
/etc/fail2ban/action.d/firewallcmd-ipset.conf
/etc/fail2ban/action.d/firewallcmd-multiport.conf
/etc/fail2ban/action.d/firewallcmd-new.conf
/etc/fail2ban/action.d/firewallcmd-rich-logging.conf
/etc/fail2ban/action.d/firewallcmd-rich-rules.conf
/etc/fail2ban/action.d/helpers-common.conf
/etc/fail2ban/action.d/iptables-allports.conf
/etc/fail2ban/action.d/iptables-common.conf
/etc/fail2ban/action.d/iptables-ipset-proto4.conf
/etc/fail2ban/action.d/iptables-ipset-proto6-allports.conf
/etc/fail2ban/action.d/iptables-ipset-proto6.conf
/etc/fail2ban/action.d/iptables-multiport-log.conf
/etc/fail2ban/action.d/iptables-multiport.conf
/etc/fail2ban/action.d/iptables-new.conf
/etc/fail2ban/action.d/iptables-xt_recent-echo.conf
/etc/fail2ban/action.d/iptables.conf
/etc/fail2ban/action.d/mail-whois-common.conf
/etc/fail2ban/action.d/mynetwatchman.conf
/etc/fail2ban/action.d/netscaler.conf
/etc/fail2ban/action.d/nftables-allports.conf
/etc/fail2ban/action.d/nftables-multiport.conf
/etc/fail2ban/action.d/nftables.conf
/etc/fail2ban/action.d/nginx-block-map.conf
/etc/fail2ban/action.d/npf.conf
/etc/fail2ban/action.d/nsupdate.conf
/etc/fail2ban/action.d/route.conf
/etc/fail2ban/action.d/sendmail.conf
/etc/fail2ban/action.d/shorewall-ipset-proto6.conf
/etc/fail2ban/action.d/smtp.py
/etc/fail2ban/action.d/smtp.pyc
/etc/fail2ban/action.d/smtp.pyo
/etc/fail2ban/action.d/symbiosis-blacklist-allports.conf
/etc/fail2ban/action.d/xarf-login-attack.conf
/etc/fail2ban/filter.d/3proxy.conf
/etc/fail2ban/filter.d/apache-auth.conf
/etc/fail2ban/filter.d/apache-badbots.conf
/etc/fail2ban/filter.d/apache-botsearch.conf
/etc/fail2ban/filter.d/apache-common.conf
/etc/fail2ban/filter.d/apache-fakegooglebot.conf
/etc/fail2ban/filter.d/apache-modsecurity.conf
/etc/fail2ban/filter.d/apache-nohome.conf
/etc/fail2ban/filter.d/apache-noscript.conf
/etc/fail2ban/filter.d/apache-overflows.conf
/etc/fail2ban/filter.d/apache-pass.conf
/etc/fail2ban/filter.d/apache-shellshock.conf
/etc/fail2ban/filter.d/assp.conf
/etc/fail2ban/filter.d/asterisk.conf
/etc/fail2ban/filter.d/bitwarden.conf
/etc/fail2ban/filter.d/botsearch-common.conf
/etc/fail2ban/filter.d/centreon.conf
/etc/fail2ban/filter.d/common.conf
/etc/fail2ban/filter.d/counter-strike.conf
/etc/fail2ban/filter.d/courier-auth.conf
/etc/fail2ban/filter.d/courier-smtp.conf
/etc/fail2ban/filter.d/cyrus-imap.conf
/etc/fail2ban/filter.d/directadmin.conf
/etc/fail2ban/filter.d/domino-smtp.conf
/etc/fail2ban/filter.d/dovecot.conf
/etc/fail2ban/filter.d/dropbear.conf
/etc/fail2ban/filter.d/drupal-auth.conf
/etc/fail2ban/filter.d/ejabberd-auth.conf
/etc/fail2ban/filter.d/exim-common.conf
/etc/fail2ban/filter.d/exim-spam.conf
/etc/fail2ban/filter.d/exim.conf
/etc/fail2ban/filter.d/freeswitch.conf
/etc/fail2ban/filter.d/froxlor-auth.conf
/etc/fail2ban/filter.d/gitlab.conf
/etc/fail2ban/filter.d/grafana.conf
/etc/fail2ban/filter.d/groupoffice.conf
/etc/fail2ban/filter.d/gssftpd.conf
/etc/fail2ban/filter.d/guacamole.conf
/etc/fail2ban/filter.d/haproxy-http-auth.conf
/etc/fail2ban/filter.d/horde.conf
/etc/fail2ban/filter.d/ignorecommands
/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot
/etc/fail2ban/filter.d/kerio.conf
/etc/fail2ban/filter.d/lighttpd-auth.conf
/etc/fail2ban/filter.d/mongodb-auth.conf
/etc/fail2ban/filter.d/monit.conf
/etc/fail2ban/filter.d/murmur.conf
/etc/fail2ban/filter.d/mysqld-auth.conf
/etc/fail2ban/filter.d/nagios.conf
/etc/fail2ban/filter.d/named-refused.conf
/etc/fail2ban/filter.d/nginx-botsearch.conf
/etc/fail2ban/filter.d/nginx-http-auth.conf
/etc/fail2ban/filter.d/nginx-limit-req.conf
/etc/fail2ban/filter.d/nsd.conf
/etc/fail2ban/filter.d/openhab.conf
/etc/fail2ban/filter.d/openwebmail.conf
/etc/fail2ban/filter.d/oracleims.conf
/etc/fail2ban/filter.d/pam-generic.conf
/etc/fail2ban/filter.d/perdition.conf
/etc/fail2ban/filter.d/php-url-fopen.conf
/etc/fail2ban/filter.d/phpmyadmin-syslog.conf
/etc/fail2ban/filter.d/portsentry.conf
/etc/fail2ban/filter.d/postfix.conf
/etc/fail2ban/filter.d/proftpd.conf
/etc/fail2ban/filter.d/pure-ftpd.conf
/etc/fail2ban/filter.d/qmail.conf
/etc/fail2ban/filter.d/recidive.conf
/etc/fail2ban/filter.d/roundcube-auth.conf
/etc/fail2ban/filter.d/screensharingd.conf
/etc/fail2ban/filter.d/selinux-common.conf
/etc/fail2ban/filter.d/selinux-ssh.conf
/etc/fail2ban/filter.d/sendmail-auth.conf
/etc/fail2ban/filter.d/sendmail-reject.conf
/etc/fail2ban/filter.d/sieve.conf
/etc/fail2ban/filter.d/slapd.conf
/etc/fail2ban/filter.d/softethervpn.conf
/etc/fail2ban/filter.d/sogo-auth.conf
/etc/fail2ban/filter.d/solid-pop3d.conf
/etc/fail2ban/filter.d/squid.conf
/etc/fail2ban/filter.d/squirrelmail.conf
/etc/fail2ban/filter.d/sshd.conf
/etc/fail2ban/filter.d/stunnel.conf
/etc/fail2ban/filter.d/suhosin.conf
/etc/fail2ban/filter.d/tine20.conf
/etc/fail2ban/filter.d/traefik-auth.conf
/etc/fail2ban/filter.d/uwimap-auth.conf
/etc/fail2ban/filter.d/vsftpd.conf
/etc/fail2ban/filter.d/webmin-auth.conf
/etc/fail2ban/filter.d/wuftpd.conf
/etc/fail2ban/filter.d/xinetd-fail.conf
/etc/fail2ban/filter.d/znc-adminlog.conf
/etc/fail2ban/filter.d/zoneminder.conf
));
list of exclusion from smeserver-fail2ban and fail2ban-server rpms
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/