mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-25 16:19:14 +02:00
letsencrypt.sh -> dehydrated
@@ -1,9 +1,9 @@
|
|||||||
# Import existing certificates
|
# 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.
|
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 `letsencrypt.sh`.
|
By default it will copy the certificates to the `certs/` directory next to `dehydrated`.
|
||||||
|
|
||||||
## Code
|
## Code
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
BASEDIR="${SCRIPTDIR}"
|
BASEDIR="${SCRIPTDIR}"
|
||||||
LETSENCRYPT="/etc/letsencrypt"
|
LETSENCRYPT="/etc/letsencrypt"
|
||||||
|
|
||||||
eval "$("${SCRIPTDIR}/letsencrypt.sh" --env)"
|
eval "$("${SCRIPTDIR}/dehydrated" --env)"
|
||||||
|
|
||||||
if [[ ! -e "${LETSENCRYPT}" ]]; then
|
if [[ ! -e "${LETSENCRYPT}" ]]; then
|
||||||
echo "No existing letsencrypt files found."
|
echo "No existing letsencrypt files found."
|
||||||
|
|||||||
Reference in New Issue
Block a user