Create the directory "$HOME/mysql-data" if it doesn't exist.

This is mounted by the mysql container for persistant data storage.
This commit is contained in:
Robert Adams
2019-11-25 04:49:20 -08:00
parent 34d6ec7e14
commit 475da0c646
+7
View File
@@ -39,6 +39,13 @@ if [[ -e "config/$CONFIG_NAME/docker-compose.yml" ]] ; then
COMPOSEFILE="config/$CONFIG_NAME/docker-compose.yml"
fi
# Local directory for storage of sql persistant data (so region
# contents persists between container restarts).
# This must be the same directory as in $CONFIG_NAME/docker-compose.yml.
if [[ ! -d "$HOME/mysql-data" ]] ; then
mkdir -p "$HOME/mysql-data"
fi
docker-compose \
--file "$COMPOSEFILE" \
--project-name opensim-standalone \