fix /var/vmail/.my.cnf

This commit is contained in:
Matthew Saunders Brown 2022-12-07 09:47:22 -08:00
parent 1107d9e7f0
commit 80e08745c5

View File

@ -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 install --owner=vmail --group=vmail --mode=640 /dev/null /var/vmail/.my.cnf
echo "[client]" > /var/vmail/.my.cnf echo "[client]" > /var/vmail/.my.cnf
echo "host = localhost" >> /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 "user = vmail" >> /var/vmail/.my.cnf
echo "password = $VMAILPASS" >> /var/vmail/.my.cnf echo "password = $VMAILPASS" >> /var/vmail/.my.cnf
echo "socket = /var/run/mysqld/mysqld.sock" >> /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 # configure vmail dirs
chmod 750 /var/vmail/ chmod 750 /var/vmail/