Skip to content

Commit

Permalink
Fixed configuration interoperability between nc-datadit and fail2ban. (
Browse files Browse the repository at this point in the history
…#323)

looks perfect, many thanks!
  • Loading branch information
Iolaum authored and nachoparker committed Dec 13, 2017
1 parent f7030f5 commit 3f09cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/nextcloudpi-config.d/nc-datadir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3f09cd5

Please sign in to comment.