|
@ -15,13 +15,15 @@ set -u |
|
|
|
|
|
|
|
|
service_def=$(get_compose_service_def "$SERVICE_NAME") |
|
|
service_def=$(get_compose_service_def "$SERVICE_NAME") |
|
|
|
|
|
|
|
|
CONF="$SERVICE_CONFIGSTORE/etc/radicale/config" |
|
|
|
|
|
|
|
|
CONFIG_PATH="/etc/radicale/config" |
|
|
|
|
|
HOST_CONFIG_PATH="$SERVICE_CONFIGSTORE$CONFIG_PATH" |
|
|
|
|
|
|
|
|
config=$(echo "$service_def" | shyaml get-value options.config 2>/dev/null) || { |
|
|
config=$(echo "$service_def" | shyaml get-value options.config 2>/dev/null) || { |
|
|
die "Missing ${WHITE}config${NORMAL} option." |
|
|
die "Missing ${WHITE}config${NORMAL} option." |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
file_put "$CONF" <<EOF |
|
|
|
|
|
|
|
|
mkdir -p "${HOST_CONFIG_PATH%/*}" |
|
|
|
|
|
file_put "$HOST_CONFIG_PATH" <<EOF || exit 1 |
|
|
$config |
|
|
$config |
|
|
|
|
|
|
|
|
[server] |
|
|
[server] |
|
@ -32,7 +34,7 @@ EOF |
|
|
init-config-add "\ |
|
|
init-config-add "\ |
|
|
$SERVICE_NAME: |
|
|
$SERVICE_NAME: |
|
|
environment: |
|
|
environment: |
|
|
RADICALE_CONFIG: \"$CONF\" |
|
|
|
|
|
|
|
|
RADICALE_CONFIG: \"$CONFIG_PATH\" |
|
|
" |
|
|
" |
|
|
|
|
|
|
|
|
|
|
|
|