tlsd 2.6.7 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tlsd +5 -2
package/package.json
CHANGED
package/tlsd
CHANGED
|
@@ -24,7 +24,7 @@ if [ "$cmd" = "run" ] ; then
|
|
|
24
24
|
|
|
25
25
|
echo "Using node.js `node -v`"
|
|
26
26
|
|
|
27
|
-
if DOMAINS_ROOT="domains" MAINTAINER_EMAIL="$email" VERBOSITY=3 node "$home/tlsd.js" ; then
|
|
27
|
+
if DOMAINS_ROOT="$home/domains" MAINTAINER_EMAIL="$email" VERBOSITY=3 node "$home/tlsd.js" ; then
|
|
28
28
|
echo "`date` ____________ Graceful exit "
|
|
29
29
|
break
|
|
30
30
|
else
|
|
@@ -97,8 +97,11 @@ fi
|
|
|
97
97
|
|
|
98
98
|
if [ "$cmd" = "domain" ] ; then
|
|
99
99
|
domain="$2"
|
|
100
|
+
root="$3"
|
|
100
101
|
if cd "$home" ; then
|
|
101
|
-
npx greenlock add --subject "$domain" --altnames "$domain"
|
|
102
|
+
if npx greenlock add --subject "$domain" --altnames "$domain" ; then
|
|
103
|
+
ln -s "$root" "$home/domains/$domain"
|
|
104
|
+
fi
|
|
102
105
|
exit 0
|
|
103
106
|
else
|
|
104
107
|
exit 1
|