mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-30 05:41:48 +02:00
letsencrypt.sh -> dehydrated
@@ -1,9 +1,9 @@
|
||||
# Import existing certificates
|
||||
|
||||
If you want to import your existing certificates from the official letsencrypt client place this script next to `letsencrypt.sh` and run it.
|
||||
If you want to import your existing certificates from the official letsencrypt client place this script next to `dehydrated` and run it.
|
||||
|
||||
You may want to check if `letsencrypt.sh` is working and all paths are set correctly.
|
||||
By default it will copy the certificates to the `certs/` directory next to `letsencrypt.sh`.
|
||||
You may want to check if `dehydrated` is working and all paths are set correctly.
|
||||
By default it will copy the certificates to the `certs/` directory next to `dehydrated`.
|
||||
|
||||
## Code
|
||||
|
||||
@@ -20,7 +20,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASEDIR="${SCRIPTDIR}"
|
||||
LETSENCRYPT="/etc/letsencrypt"
|
||||
|
||||
eval "$("${SCRIPTDIR}/letsencrypt.sh" --env)"
|
||||
eval "$("${SCRIPTDIR}/dehydrated" --env)"
|
||||
|
||||
if [[ ! -e "${LETSENCRYPT}" ]]; then
|
||||
echo "No existing letsencrypt files found."
|
||||
|
||||
Reference in New Issue
Block a user