9 lines
214 B
Bash
9 lines
214 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
mysql --user=root --host=mysql <<EOF
|
||
|
CREATE DATABASE IF NOT EXISTS gitlabhq_test;
|
||
|
CREATE USER IF NOT EXISTS 'gitlab'@'%';
|
||
|
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
|
||
|
FLUSH PRIVILEGES;
|
||
|
EOF
|