mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +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
|
if [ "${dnsservice}" == "duckdns" ]; then
|
||||||
echo "# preparing DUCKDNS"
|
echo "# preparing DUCKDNS"
|
||||||
dnsservice="dns_duckdns"
|
dnsservice="dns_duckdns"
|
||||||
export DuckDNS_Token="${token}"
|
envVars="DuckDNS_Token=${token}"
|
||||||
exec "$@"
|
|
||||||
else
|
else
|
||||||
echo "error='not supported dnsservice'"
|
echo "error='not supported dnsservice'"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -183,7 +182,8 @@ elif [ "$1" = "issue-cert" ]; then
|
||||||
|
|
||||||
# create certicicates
|
# create certicicates
|
||||||
echo "# creating certs"
|
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
|
# replace certs for clearnet
|
||||||
if [ "${options}" == "ip" ] || [ "${options}" == "ip&tor" ]; then
|
if [ "${options}" == "ip" ] || [ "${options}" == "ip&tor" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue