Permalink
Browse files

print domain name if attempt is unsuccessful

  • Loading branch information...
Serghey Rodin
Serghey Rodin committed Jul 18, 2017
1 parent b21624c commit 3e6fd7e814256ab6e1e1d94a5665c4ada620d6da
Showing with 8 additions and 2 deletions.
  1. +8 −2 bin/v-update-letsencrypt-ssl
@@ -47,9 +47,15 @@ for user in $users; do
aliases=$(echo "$aliases" |grep -v "^$domain$")
if [ ! -z "$aliases" ]; then
aliases=$(echo "$aliases" |sed -e ':a;N;$!ba;s/\n/,/g')
- $BIN/v-add-letsencrypt-domain $user $domain $aliases
+ msg=$($BIN/v-add-letsencrypt-domain $user $domain $aliases)
+ if [ $? -ne 0 ]; then
+ echo "$domain $msg"
+ fi
else
- $BIN/v-add-letsencrypt-domain $user $domain
+ msg==$($BIN/v-add-letsencrypt-domain $user $domain)
+ if [ $? -ne 0 ]; then
+ echo "$domain $msg"
+ fi
fi
fi
sleep 10

0 comments on commit 3e6fd7e

Please sign in to comment.