From 1ff27a65785d121eb7d57adef3acd7ff3bb4ada7 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sat, 15 Feb 2020 10:07:17 +0100 Subject: [PATCH] fix: [apache/publish-dir] support custom ``$DATASTORE`` Signed-off-by: Valentin Lab --- apache/lib/common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/lib/common b/apache/lib/common index c67c4e6..d96fae4 100644 --- a/apache/lib/common +++ b/apache/lib/common @@ -438,7 +438,7 @@ apache_code_dir() { init-config-add " $SERVICE_NAME: volumes: - - $host_path:$local_path + - \"$HOST_DATASTORE${host_path##$DATASTORE}:$local_path\" " } @@ -478,7 +478,7 @@ $SERVICE_NAME: volumes: $( for d in "${data[@]}"; do - echo " - $dst/$d:$local_path/$d" + echo " - $HOST_DATASTORE${dst##$DATASTORE}/$d:$local_path/$d" done )"