mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
9 lines
197 B
Bash
9 lines
197 B
Bash
#!/bin/bash
|
|
if [ "${MYSQL_ROOT_PASSWORD}" = "" ] ;then MYSQL_ROOT_PASSWORD=123456 ;fi
|
|
|
|
service mariadb start
|
|
|
|
mysqladmin -u root password ${MYSQL_ROOT_PASSWORD}
|
|
|
|
exec /server --createDatabase=true
|