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 }