Browse Source

fix: [apache] convert config store directory to host path also.

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
matomo
Valentin Lab 4 years ago
parent
commit
8ca68aadc9
  1. 13
      apache/lib/common

13
apache/lib/common

@ -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\"
" "
} }

Loading…
Cancel
Save