Page 1 of 1

Bug in install script

Posted: Wed Feb 06, 2019 6:49 am
by R0N
Hi everyone,

I installed VestaCP with the automatic installer on Ubuntu 18.04 but got some errors on Roundcube.
The password is not set correctly in the configuration files and Dovecot has a bad config by default.

When connecting to Roundcube I got the database error (seen that here more on the forum) so wrote some bash lines to fix it all..

s=`cat /var/lib/roundcube/config/db.inc.php|grep db_dsnw`
A="$(cut -d':' -f3 <<<"$s")"
B="$(cut -d'@' -f1 <<<"$A")"
sed -i "/dbpass=/s/=.*/='$B';/" /etc/roundcube/debian-db.php
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
systemctl restart dovecot

The password is set correctly in db.inc.php so I grab it from there and paste it in the debian-db.php
remove 15-mailboxes.conf and restart dovecot.