mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-05 22:53:23 +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}"
|
||||
LETSENCRYPT="/etc/letsencrypt"
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
. "${SCRIPTDIR}/config.sh"
|
||||
eval "$("${SCRIPTDIR}/letsencrypt.sh" --env)"
|
||||
|
||||
if [[ ! -e "${LETSENCRYPT}" ]]; then
|
||||
echo "No existing letsencrypt files found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -e "${BASEDIR}/domains.txt" ]]; then
|
||||
DOMAINS_TXT="${BASEDIR}/domains.txt"
|
||||
|
||||
Reference in New Issue
Block a user