From a4917b6d060d1da5283c5c08ba9dc0977e72b2ea Mon Sep 17 00:00:00 2001 From: Uros Date: Tue, 20 Dec 2016 10:34:45 +0100 Subject: [PATCH] fix for nginx less (apache only) installation fixes problem with apache only installation where the certificate challenge file is not written correctly --- bin/v-check-letsencrypt-domain | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/v-check-letsencrypt-domain b/bin/v-check-letsencrypt-domain index e46c7ea2f..64c705160 100755 --- a/bin/v-check-letsencrypt-domain +++ b/bin/v-check-letsencrypt-domain @@ -97,7 +97,10 @@ if [ "$WEB_SYSTEM" = 'nginx' ] || [ "$PROXY_SYSTEM" = 'nginx' ]; then fi else acme="$HOMEDIR/$user/web/$r_domain/public_html/.well-known/acme-challenge" - echo "$token" > $acme/$token.$thumb + if [ ! -d "$acme" ]; then + mkdir -p $acme + fi + echo "$token.$thumb" > $acme/$token chown -R $user:$user $HOMEDIR/$user/web/$r_domain/public_html/.well-known fi