fail2ban: fix missing ufw filter for old images

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2019-09-10 11:38:48 -06:00
parent 9c8b990a4c
commit f4ee2af47d
2 changed files with 10 additions and 2 deletions

View File

@ -1,9 +1,11 @@
[v1.16.3](https://github.com/nextcloud/nextcloudpi/commit/835016c) (2019-09-09) bookmarks: install php-gmp
[v1.16.4](https://github.com/nextcloud/nextcloudpi/commit/682f803) (2019-09-10) fail2ban: fix missing ufw filter for old images
[v1.16.3 ](https://github.com/nextcloud/nextcloudpi/commit/06005e1) (2019-09-09) nc-datadir: avoid using the symlink
[v1.16.2 ](https://github.com/nextcloud/nextcloudpi/commit/f4b4a65) (2019-09-04) custom code before/after auto-backup
[v1.16.1](https://github.com/nextcloud/nextcloudpi/commit/fd2b74b) (2019-09-02) Add missing port in nc-rsync-auto.sh (#983)
[v1.16.1 ](https://github.com/nextcloud/nextcloudpi/commit/fd2b74b) (2019-09-02) Add missing port in nc-rsync-auto.sh (#983)
[v1.16.0 ](https://github.com/nextcloud/nextcloudpi/commit/1a367a6) (2019-08-23) upgrade to NC16.0.4

View File

@ -15,6 +15,12 @@ sed -i "s/buster/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true
apt-get update
apt-get install -y --no-install-recommends php${PHPVER}-gmp
# fix fail2ban with UFW
cat > /etc/systemd/system/fail2ban.service.d/touch-ufw-log.conf <<EOF
[Service]
ExecStartPre=/bin/touch /var/log/ufw.log
EOF
# docker images only
[[ -f /.docker-image ]] && {
: