mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-29 19:03:18 +00:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user