fix /var/vmail/.my.cnf
This commit is contained in:
parent
1107d9e7f0
commit
80e08745c5
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue
Block a user