First steps in integration of IVIS.

This commit is contained in:
Tomas Bures 2018-12-25 20:13:32 +01:00
parent bf626993f4
commit dce5ba7464
35 changed files with 10098 additions and 91 deletions

13
mvis/server/setup-db.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
MYSQL_PASSWORD=`pwgen 12 -1`
# Setup MySQL user for Mailtrain
mysql -u root -p -e "CREATE USER 'mvis'@'localhost' IDENTIFIED BY '$MYSQL_PASSWORD';"
mysql -u root -p -e "GRANT ALL PRIVILEGES ON mvis.* TO 'mvis'@'localhost';"
mysql -u mvis --password="$MYSQL_PASSWORD" -e "CREATE database mvis;"
cat >> config/production.yaml <<EOT
mysql:
password: $MYSQL_PASSWORD
EOT