diff --git a/install.sh b/install.sh index 7d65d33..f926516 100755 --- a/install.sh +++ b/install.sh @@ -66,10 +66,11 @@ useradd --create-home --home-dir /var/vmail --shell /usr/sbin/nologin --system - install --owner=vmail --group=vmail --mode=640 /dev/null /var/vmail/.my.cnf echo "[client]" > /var/vmail/.my.cnf echo "host = localhost" >> /var/vmail/.my.cnf -echo "database = vmail" >> /var/vmail/.my.cnf echo "user = vmail" >> /var/vmail/.my.cnf echo "password = $VMAILPASS" >> /var/vmail/.my.cnf echo "socket = /var/run/mysqld/mysqld.sock" >> /var/vmail/.my.cnf +echo "[mysql]" >> /var/vmail/.my.cnf +echo "database = vmail" >> /var/vmail/.my.cnf # configure vmail dirs chmod 750 /var/vmail/