-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathconfig
More file actions
executable file
·15 lines (12 loc) · 685 Bytes
/
config
File metadata and controls
executable file
·15 lines (12 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export LETSENCRYPT_IMAGE=${LETSENCRYPT_IMAGE:="$(awk -F '[ :]' '{print $2}' "${_DIR}/Dockerfile")"}
export LETSENCRYPT_IMAGE_VERSION=${LETSENCRYPT_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' "${_DIR}/Dockerfile")"}
export PLUGIN_DISABLE_PULL=${LETSENCRYPT_DISABLE_PULL:=}
export PLUGIN_DISABLE_PULL_VARIABLE="LETSENCRYPT_DISABLE_PULL"
export PLUGIN_IMAGE=$LETSENCRYPT_IMAGE
export PLUGIN_IMAGE_VERSION=$LETSENCRYPT_IMAGE_VERSION
export LETSENCRYPT_CRON_CMD="$PLUGIN_AVAILABLE_PATH/letsencrypt/cron-job"
export LETSENCRYPT_CRON_JOB="@daily $LETSENCRYPT_CRON_CMD"