mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-16 08:26:48 +01:00
removed acme-challenges directory from git, create if needed
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,6 +2,4 @@ private_key.pem
|
||||
domains.txt
|
||||
config.sh
|
||||
certs/*
|
||||
!certs/.keep
|
||||
.acme-challenges/*
|
||||
!.acme-challenges/.keep
|
||||
|
||||
@@ -193,6 +193,10 @@ if [[ ! -e "domains.txt" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -e "${WELLKNOWN}" ]]; then
|
||||
mkdir -p "${WELLKNOWN}"
|
||||
fi
|
||||
|
||||
# Generate certificates for all domains found in domain.txt. Check if existing certificate are about to expire
|
||||
<domains.txt sed 's/^\s*//g;s/\s*$//g' | grep -v '^#' | grep -v '^$' | while read -r line; do
|
||||
domain="$(echo $line | cut -d' ' -f1)"
|
||||
|
||||
Reference in New Issue
Block a user