-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathconfig
More file actions
executable file
·17 lines (13 loc) · 753 Bytes
/
Copy pathconfig
File metadata and controls
executable file
·17 lines (13 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 DOKKU_LIB_HOST_ROOT=${DOKKU_LIB_HOST_ROOT:=$DOKKU_LIB_ROOT}
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"