mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-11-15 13:22:04 +01:00
use config vars from letsencrypt.sh in import-script
This commit is contained in:
1 parent
3ba233de1b
commit
62037de041
1 file changed
+6
-2
+6
-2
@@ -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