Skip to content

Commit

Permalink
Try mounting .secrets into the container in two locations
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristensen committed Feb 10, 2021
1 parent a83f95e commit 9c50c3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion udm-le.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ for DOMAIN in $(echo $CERT_HOSTS | tr "," "\n"); do
done

# Check for optional .secrets directory, and add it to the mounts if it exists
# Lego does not support AWS_ACCESS_KEY_ID_FILE or AWS_PROFILE_FILE so we'll try
# mounting the secrets directory into a place that Route53 will see.
if [ -d "${UDM_LE_PATH}/.secrets" ]; then
DOCKER_VOLUMES="${DOCKER_VOLUMES} -v ${UDM_LE_PATH}/.secrets:/root/.secrets/"
DOCKER_VOLUMES="${DOCKER_VOLUMES} -v ${UDM_LE_PATH}/.secrets:/root/.aws/ -v ${UDM_LE_PATH}/.secrets:/root/.secrets/"
fi

# Setup persistent on_boot.d trigger
Expand Down

0 comments on commit 9c50c3c

Please sign in to comment.