Add utf8mb4 to new instalations from script

This commit is contained in:
joker-x 2020-08-26 08:00:12 +02:00
parent fcae585417
commit 1b4afbca81

View file

@ -210,7 +210,7 @@ function installMailtrain {
mysql -u root -e "GRANT ALL PRIVILEGES ON mailtrain.* TO 'mailtrain'@'localhost';" mysql -u root -e "GRANT ALL PRIVILEGES ON mailtrain.* TO 'mailtrain'@'localhost';"
mysql -u root -e "CREATE USER 'mailtrain_ro'@'localhost' IDENTIFIED BY '$mysqlRoPassword';" mysql -u root -e "CREATE USER 'mailtrain_ro'@'localhost' IDENTIFIED BY '$mysqlRoPassword';"
mysql -u root -e "GRANT SELECT ON mailtrain.* TO 'mailtrain_ro'@'localhost';" mysql -u root -e "GRANT SELECT ON mailtrain.* TO 'mailtrain_ro'@'localhost';"
mysql -u mailtrain --password="$mysqlPassword" -e "CREATE database mailtrain;" mysql -u mailtrain --password="$mysqlPassword" -e "CREATE DATABASE mailtrain CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
# Add new user for the mailtrain daemon to run as # Add new user for the mailtrain daemon to run as
useradd mailtrain || true useradd mailtrain || true
@ -233,6 +233,8 @@ www:
mysql: mysql:
password: "$mysqlPassword" password: "$mysqlPassword"
charset: utf8mb4
multipleStatements: true
redis: redis:
enabled: true enabled: true