Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-09-11 03:54:03 +0300
committernachoparker <nacho@ownyourbits.com>2019-09-12 18:32:18 +0300
commit4bd06e6c1344019010e7c66421bef4eba3db78ab (patch)
tree012ed6e240804e1df4d7b55f29cfcb46dd4aff63
parentf4ee2af47d25108457b1290369e8479b4cba5ac6 (diff)
fail2ban: dont need ufw check in dockerv1.16.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--updates/1.17.0.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/updates/1.17.0.sh b/updates/1.17.0.sh
index 9b05ab67..98070034 100644
--- a/updates/1.17.0.sh
+++ b/updates/1.17.0.sh
@@ -15,12 +15,6 @@ 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 ]] && {
:
@@ -28,7 +22,12 @@ EOF
# for non docker images
[[ ! -f /.docker-image ]] && {
- :
+ # fix fail2ban with UFW
+ mkdir -p /etc/systemd/system/fail2ban.service.d/
+ cat > /etc/systemd/system/fail2ban.service.d/touch-ufw-log.conf <<EOF
+[Service]
+ExecStartPre=/bin/touch /var/log/ufw.log
+EOF
}
exit 0