Explorar el Código

Merge pull request #1602 from ioannidesalex/patch-46

Roundcube fail2ban fix
Serghey Rodin hace 7 años
padre
commit
eed9f3bf4b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      install/vst-install-ubuntu.sh

+ 3 - 0
install/vst-install-ubuntu.sh

@@ -1153,6 +1153,9 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
     mysql -e "GRANT ALL ON roundcube.*
     mysql -e "GRANT ALL ON roundcube.*
         TO roundcube@localhost IDENTIFIED BY '$r'"
         TO roundcube@localhost IDENTIFIED BY '$r'"
     sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
     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
     if [ "$release" = '16.04' ]; then
         mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
         mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
         mv /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
         mv /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php