Browse Source

fix: [apache/publish-dir] support custom ``$DATASTORE``

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
dev
Valentin Lab 5 years ago
parent
commit
1ff27a6578
  1. 4
      apache/lib/common

4
apache/lib/common

@ -438,7 +438,7 @@ apache_code_dir() {
init-config-add " init-config-add "
$SERVICE_NAME: $SERVICE_NAME:
volumes: volumes:
- $host_path:$local_path
- \"$HOST_DATASTORE${host_path##$DATASTORE}:$local_path\"
" "
} }
@ -478,7 +478,7 @@ $SERVICE_NAME:
volumes: volumes:
$( $(
for d in "${data[@]}"; do for d in "${data[@]}"; do
echo " - $dst/$d:$local_path/$d"
echo " - $HOST_DATASTORE${dst##$DATASTORE}/$d:$local_path/$d"
done done
)" )"

Loading…
Cancel
Save