myt/server/docker-start.sh

13 lines
314 B
Bash
Raw Permalink Normal View History

2020-11-14 01:38:56 +00:00
#!/bin/bash
set -e
2020-11-14 01:38:56 +00:00
# XXX: Workaround to avoid OverlayFS bug on MacOs
# https://docs.docker.com/storage/storagedriver/overlayfs-driver/#limitations-on-overlayfs-compatibility
if [ ! -d /var/lib/mysql/mysql ]; then
chown mysql:mysql /var/lib/mysql
cp -a /mysql-template/. /var/lib/mysql
2020-11-14 01:38:56 +00:00
fi
exec gosu mysql "$@"