Skip to content

Commit d7e9194

Browse files
authored
Echo errors from letsencrypt
1 parent 789a2b0 commit d7e9194

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/v-update-letsencrypt-ssl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
8181

8282
msg=$($BIN/v-add-letsencrypt-domain $user $domain $aliases)
8383
if [ $? -ne 0 ]; then
84+
echo $msg
8485
log_event $E_INVALID "$domain $msg"
8586
if [ -z "$fail_counter" ]; then
8687
add_object_key "web" 'DOMAIN' "$domain" 'LETSENCRYPT_FAIL_COUNT' 'LETSENCRYPT'
@@ -116,6 +117,7 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
116117
((lecounter++))
117118
msg=$($BIN/v-add-letsencrypt-domain $user $domain ' ' yes)
118119
if [ $? -ne 0 ]; then
120+
echo $msg
119121
log_event $E_INVALID "$domain $msg"
120122
if [ -z "$fail_counter" ]; then
121123
add_object_key "mail" 'DOMAIN' "$domain" 'LETSENCRYPT_FAIL_COUNT' 'LETSENCRYPT'

0 commit comments

Comments
 (0)