diff options
Diffstat (limited to 'docker_templates')
| -rw-r--r--[l---------] | docker_templates/base/kolla-common.sh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/docker_templates/base/kolla-common.sh b/docker_templates/base/kolla-common.sh index 03ffb4e73..cc960ca24 120000..100644 --- a/docker_templates/base/kolla-common.sh +++ b/docker_templates/base/kolla-common.sh @@ -1 +1,22 @@ -../../docker/common/base/kolla-common.sh
\ No newline at end of file +#!/bin/bash + +set_configs() { + case $KOLLA_CONFIG_STRATEGY in + COPY_ALWAYS) + source /opt/kolla/config-external.sh + ;; + COPY_ONCE) + if [[ -f /configured ]]; then + echo 'INFO - This container has already been configured; Refusing to copy new configs' + else + source /opt/kolla/config-external.sh + touch /configured + fi + ;; + + *) + echo '$KOLLA_CONFIG_STRATEGY is not set properly' + exit 1 + ;; + esac +} |
