From 475da0c646bd599cd5a65d2809bd96a26dbac9b3 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Mon, 25 Nov 2019 04:49:20 -0800 Subject: [PATCH] Create the directory "$HOME/mysql-data" if it doesn't exist. This is mounted by the mysql container for persistant data storage. --- opensim-standalone/run-standalone.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opensim-standalone/run-standalone.sh b/opensim-standalone/run-standalone.sh index f91a51d..6d7b306 100755 --- a/opensim-standalone/run-standalone.sh +++ b/opensim-standalone/run-standalone.sh @@ -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 \