mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
try to export correctly
This commit is contained in:
parent
eb676c7fde
commit
b60da0127f
1 changed files with 3 additions and 3 deletions
|
@ -174,8 +174,7 @@ elif [ "$1" = "issue-cert" ]; then
|
|||
if [ "${dnsservice}" == "duckdns" ]; then
|
||||
echo "# preparing DUCKDNS"
|
||||
dnsservice="dns_duckdns"
|
||||
export DuckDNS_Token="${token}"
|
||||
exec "$@"
|
||||
envVars="DuckDNS_Token=${token}"
|
||||
else
|
||||
echo "error='not supported dnsservice'"
|
||||
exit 1
|
||||
|
@ -183,7 +182,8 @@ elif [ "$1" = "issue-cert" ]; then
|
|||
|
||||
# create certicicates
|
||||
echo "# creating certs"
|
||||
/home/admin/.acme.sh/acme.sh --home "/home/admin/.acme.sh" --config-home "/mnt/hdd/app-data/letsencrypt" --cert-home "/mnt/hdd/app-data/letsencrypt/certs" --issue --dns ${dnsservice} -d ${FQDN} --keylength ec-256 1>&2
|
||||
result=$(export ${envVars} | /home/admin/.acme.sh/acme.sh --home "/home/admin/.acme.sh" --config-home "/mnt/hdd/app-data/letsencrypt" --cert-home "/mnt/hdd/app-data/letsencrypt/certs" --issue --dns ${dnsservice} -d ${FQDN} --keylength ec-256 2>&1)
|
||||
>&2 echo "${result}"
|
||||
|
||||
# replace certs for clearnet
|
||||
if [ "${options}" == "ip" ] || [ "${options}" == "ip&tor" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue