From af54edb121da82f80975496cfd89a348e0f04caa Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sun, 17 Dec 2017 13:46:18 +0100 Subject: [PATCH] security hardening part 2 --- changelog.md | 4 +++- etc/nextcloudpi-config.d/fail2ban.sh | 1 + etc/nextcloudpi-config.d/nc-init.sh | 2 +- etc/nextcloudpi-config.d/nc-nextcloud.sh | 2 +- lamp.sh | 4 +++- nextcloudpi.sh | 6 ++++-- update.sh | 22 ++++++++++++++++++++-- 7 files changed, 33 insertions(+), 8 deletions(-) diff --git a/changelog.md b/changelog.md index 55f3a99a..4ab8b3e7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.41.11](https://github.com/nextcloud/nextcloudpi/commit/17af1ab) (2017-12-16) security hardening +[v0.41.12](https://github.com/nextcloud/nextcloudpi/commit/392ac9c) (2017-12-17) security hardening part 2 + +[v0.41.11](https://github.com/nextcloud/nextcloudpi/commit/b817b90) (2017-12-16) security hardening [v0.41.10](https://github.com/nextcloud/nextcloudpi/commit/330df57) (2017-12-16) dnsmasq: added interface diff --git a/etc/nextcloudpi-config.d/fail2ban.sh b/etc/nextcloudpi-config.d/fail2ban.sh index d240e747..c3426259 100644 --- a/etc/nextcloudpi-config.d/fail2ban.sh +++ b/etc/nextcloudpi-config.d/fail2ban.sh @@ -155,6 +155,7 @@ filter = nextcloud logpath = $NCLOG maxretry = $MAXRETRY_ EOF + cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local update-rc.d fail2ban defaults update-rc.d fail2ban enable service fail2ban restart diff --git a/etc/nextcloudpi-config.d/nc-init.sh b/etc/nextcloudpi-config.d/nc-init.sh index 1e04c48e..427edab9 100644 --- a/etc/nextcloudpi-config.d/nc-init.sh +++ b/etc/nextcloudpi-config.d/nc-init.sh @@ -55,7 +55,7 @@ configure() # workaround to emulate DROP USER IF EXISTS ..;) local DBPASSWD=$( grep password /root/.my.cnf | cut -d= -f2 ) - mysql -u root </dev/null <