mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-01 06:33:15 +02: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
|
domains.txt
|
||||||
config.sh
|
config.sh
|
||||||
certs/*
|
certs/*
|
||||||
!certs/.keep
|
|
||||||
.acme-challenges/*
|
.acme-challenges/*
|
||||||
!.acme-challenges/.keep
|
|
||||||
|
|||||||
@@ -193,6 +193,10 @@ if [[ ! -e "domains.txt" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# 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
|
<domains.txt sed 's/^\s*//g;s/\s*$//g' | grep -v '^#' | grep -v '^$' | while read -r line; do
|
||||||
domain="$(echo $line | cut -d' ' -f1)"
|
domain="$(echo $line | cut -d' ' -f1)"
|
||||||
|
|||||||
Reference in New Issue
Block a user