|
@ -431,12 +431,23 @@ apache_code_dir() { |
|
|
host_path=$(e "$cfg" | cfg-get-value location 2>/dev/null) || |
|
|
host_path=$(e "$cfg" | cfg-get-value location 2>/dev/null) || |
|
|
host_path="$DATASTORE/$BASE_SERVICE_NAME${local_path}" |
|
|
host_path="$DATASTORE/$BASE_SERVICE_NAME${local_path}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## convert to docker host path |
|
|
|
|
|
case "$host_path" in |
|
|
|
|
|
"$DATASTORE"*) |
|
|
|
|
|
docker_host_path="$HOST_DATASTORE${host_path##$DATASTORE}" |
|
|
|
|
|
;; |
|
|
|
|
|
"$CONFIGSTORE"*) |
|
|
|
|
|
docker_host_path="$HOST_CONFIGSTORE${host_path##$CONFIGSTORE}" |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
mkdir -p "$host_path" || return 1 |
|
|
mkdir -p "$host_path" || return 1 |
|
|
|
|
|
|
|
|
init-config-add " |
|
|
init-config-add " |
|
|
$SERVICE_NAME: |
|
|
$SERVICE_NAME: |
|
|
volumes: |
|
|
volumes: |
|
|
- \"$HOST_DATASTORE${host_path##$DATASTORE}:$local_path\" |
|
|
|
|
|
|
|
|
- \"${docker_host_path}:$local_path\" |
|
|
" |
|
|
" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|