First steps in integration of IVIS.
This commit is contained in:
parent
bf626993f4
commit
dce5ba7464
35 changed files with 10098 additions and 91 deletions
13
mvis/server/setup-db.sh
Normal file
13
mvis/server/setup-db.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue