mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-17 04:17:00 +02:00
use config vars from letsencrypt.sh in import-script
This commit is contained in:
@@ -10,8 +10,12 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
BASEDIR="${SCRIPTDIR}"
|
BASEDIR="${SCRIPTDIR}"
|
||||||
LETSENCRYPT="/etc/letsencrypt"
|
LETSENCRYPT="/etc/letsencrypt"
|
||||||
|
|
||||||
# shellcheck disable=SC1090
|
eval "$("${SCRIPTDIR}/letsencrypt.sh" --env)"
|
||||||
. "${SCRIPTDIR}/config.sh"
|
|
||||||
|
if [[ ! -e "${LETSENCRYPT}" ]]; then
|
||||||
|
echo "No existing letsencrypt files found."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -e "${BASEDIR}/domains.txt" ]]; then
|
if [[ -e "${BASEDIR}/domains.txt" ]]; then
|
||||||
DOMAINS_TXT="${BASEDIR}/domains.txt"
|
DOMAINS_TXT="${BASEDIR}/domains.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user