From 3f09cd500fc9ce5ab19df98fff805204f6530e67 Mon Sep 17 00:00:00 2001 From: Nikolaos Perrakis Date: Wed, 13 Dec 2017 18:01:06 +0000 Subject: [PATCH] Fixed configuration interoperability between nc-datadit and fail2ban. (#323) looks perfect, many thanks! --- etc/nextcloudpi-config.d/nc-datadir.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/nextcloudpi-config.d/nc-datadir.sh b/etc/nextcloudpi-config.d/nc-datadir.sh index 8aaafe511..9b6546287 100644 --- a/etc/nextcloudpi-config.d/nc-datadir.sh +++ b/etc/nextcloudpi-config.d/nc-datadir.sh @@ -88,10 +88,11 @@ configure() sed -i "s|^opcache.file_cache=.*|opcache.file_cache=$DATADIR_/.opcache|" /etc/php/7.0/mods-available/opcache.ini # update fail2ban logpath - sed -i "s|logpath =.*|logpath = $DATADIR_/nextcloud.log|" /etc/fail2ban/jail.conf + sed -i "s|logpath =.*nextcloud.log|logpath = $DATADIR_/nextcloud.log|" /etc/fail2ban/jail.conf # datadir sudo -u www-data php occ config:system:set datadirectory --value="$DATADIR_" + sudo -u www-data php occ config:system:set logfile --value="$DATADIR_/nextcloud.log" sudo -u www-data php occ maintenance:mode --off }