Update entrypoint.sh

This commit is contained in:
Andrew Bauer 2018-01-16 20:14:42 -06:00 committed by GitHub
parent fe0bd66f74
commit 530e10610e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ close_mysql () {
# MAIN PROGRAM #
################
echo
# Configure then start Mysql
if [ -n "$MYSQL_SERVER" ] && [ -n "$MYSQL_USER" ] && [ -n "$MYSQL_PASSWORD" ] && [ -n "$MYSQL_DB" ]; then
sed -i -e "s/ZM_DB_NAME=zm/ZM_DB_NAME=$MYSQL_USER/g" /etc/zm.conf