prefixes: Allow instances to be skipped
This commit allows an instance to be skipped for the purposes of the resolver by adding a file named `prefixes.skip` to the instance base directory. This can be useful for dummy or cloned instances.
This commit is contained in:
parent
1d1f61e6b4
commit
5f532d0841
3 changed files with 22 additions and 3 deletions
|
|
@ -84,6 +84,14 @@ function compute_instance_prefixfile() {
|
|||
}
|
||||
INSTANCE_PREFIX_FILE="$(compute_instance_prefixfile "$INSTANCE_BASE_DIR" )"
|
||||
|
||||
# compute the prefix file
|
||||
function compute_instance_noprefixfile() {
|
||||
INSTANCE_BASE_DIR="$1"
|
||||
INSTANCE_PREFIX_FILE="$INSTANCE_BASE_DIR/prefixes.skip"
|
||||
echo "$INSTANCE_PREFIX_FILE"
|
||||
}
|
||||
INSTANCE_NOPREFIX_FILE="$(compute_instance_noprefixfile "$INSTANCE_BASE_DIR" )"
|
||||
|
||||
if [ -n "$CERTBOT_EMAIL" ]; then
|
||||
LETSENCRYPT_HOST="$INSTANCE_DOMAIN"
|
||||
LETSENCRYPT_EMAIL="$CERTBOT_EMAIL"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue