acme_extract -> acme_extract.py + F_BIN to avoid .py

This commit is contained in:
NorseGaud 2022-03-06 21:11:46 -05:00
parent 3be5879fcf
commit 1ab8ea96b2
No known key found for this signature in database
GPG key ID: FC3D2A556A94E721
6 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ VCS_VER = $(shell git describe --tags --contains --always)
all: lint build backup generate-accounts tests clean
build:
docker build --force-rm -t $(NAME) . --build-arg VCS_VER=$(VCS_VER) --build-arg VCS_REF=$(VCS_REF)
docker build -t $(NAME) . --build-arg VCS_VER=$(VCS_VER) --build-arg VCS_REF=$(VCS_REF)
backup:
# if backup directories exist, clean hasn't been called, therefore

0
target/bin/print-environment Normal file → Executable file
View file

0
target/bin/setup Normal file → Executable file
View file

View file

@ -418,8 +418,8 @@ function _extract_certs_from_acme
fi
local KEY CERT
KEY=$(acme_extract /etc/letsencrypt/acme.json "${CERT_DOMAIN}" --key)
CERT=$(acme_extract /etc/letsencrypt/acme.json "${CERT_DOMAIN}" --cert)
KEY=$(acme_extract.py /etc/letsencrypt/acme.json "${CERT_DOMAIN}" --key)
CERT=$(acme_extract.py /etc/letsencrypt/acme.json "${CERT_DOMAIN}" --cert)
if [[ -z ${KEY} ]] || [[ -z ${CERT} ]]
then

View file

@ -99,7 +99,7 @@ function _shellcheck
-not -path './target/docker-configomat/*'
)"
# shellcheck disable=SC2248
F_BIN="$(grep -l /bin/bash target/bin/*)"
F_BIN="$(find 'target/bin' -type f -not -name '*.py')"
F_BATS="$(find 'test' -maxdepth 1 -type f -iname '*.bats')"
# This command is a bit easier to grok as multi-line.