Roundcube fail2ban fix

This commit is contained in:
Alexandros Ioannides 2018-05-31 23:51:09 +03:00 committed by GitHub
commit eca2fdc073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1153,6 +1153,9 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
mysql -e "GRANT ALL ON roundcube.*
TO roundcube@localhost IDENTIFIED BY '$r'"
sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
touch /var/log/roundcube/errors
chmod 640 /var/log/roundcube/errors
chown www-data:adm /var/log/roundcube/errors
if [ "$release" = '16.04' ]; then
mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
mv /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php