From d1cf5088841da91eb65100c4823e1d4624962bd1 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 26 Nov 2016 13:40:53 +0000 Subject: [PATCH] Fix for removal of v-get-web-domain-value The command v-get-web-domain-value was removed in Vesta 0.9.8-17. This fixes by replacing with v-list-web-domain-ssl to perform the same function. --- letsencrypt-vesta | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt-vesta b/letsencrypt-vesta index 082e322..d2b2ed8 100755 --- a/letsencrypt-vesta +++ b/letsencrypt-vesta @@ -254,8 +254,8 @@ do cp /etc/letsencrypt/live/$MAINDOMAIN/chain.pem $TMPLOC/$DOMAIN.ca #Check if the site already has a cert - HAS_CERT=`$VESTA_PATH/bin/v-get-web-domain-value $USER $DOMAIN SSL` - if [[ $HAS_CERT == 'no' ]] + HAS_CERT=`$VESTA_PATH/bin/v-list-web-domain-ssl $USER $DOMAIN` + if [[ $HAS_CERT == '' ]] then #Configure SSL and install the cert $VESTA_PATH/bin/v-add-web-domain-ssl $USER $DOMAIN $TMPLOC