From 80e08745c59e23fd4d3d5e11247a5288fe8314ef Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 7 Dec 2022 09:47:22 -0800 Subject: [PATCH] fix /var/vmail/.my.cnf --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/