Skip to content

Commit a4917b6

Browse files
author
Uros
committed
fix for nginx less (apache only) installation
fixes problem with apache only installation where the certificate challenge file is not written correctly
1 parent b103640 commit a4917b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/v-check-letsencrypt-domain

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ if [ "$WEB_SYSTEM" = 'nginx' ] || [ "$PROXY_SYSTEM" = 'nginx' ]; then
9797
fi
9898
else
9999
acme="$HOMEDIR/$user/web/$r_domain/public_html/.well-known/acme-challenge"
100-
echo "$token" > $acme/$token.$thumb
100+
if [ ! -d "$acme" ]; then
101+
mkdir -p $acme
102+
fi
103+
echo "$token.$thumb" > $acme/$token
101104
chown -R $user:$user $HOMEDIR/$user/web/$r_domain/public_html/.well-known
102105
fi
103106

0 commit comments

Comments
 (0)