|
@@ -228,15 +228,9 @@ for auth in $authz; do
|
|
|
check_result $? "DNS _acme-challenge record wasn't created"
|
|
check_result $? "DNS _acme-challenge record wasn't created"
|
|
|
else
|
|
else
|
|
|
if [ -z "$mail" ]; then
|
|
if [ -z "$mail" ]; then
|
|
|
- if [ "$WEB_SYSTEM" = 'nginx' ] && [ ! -z "$PROXY_SYSTEM" ]; then
|
|
|
|
|
- if [ ! -z "$mail" ]; then
|
|
|
|
|
- conf="$HOMEDIR/$user/conf/mail/$root_domain/$PROXY_SYSTEM.conf_letsencrypt"
|
|
|
|
|
- sconf="$HOMEDIR/$user/conf/mail/$root_domain/$PROXY_SYSTEM.ssl.conf_letsencrypt"
|
|
|
|
|
- else
|
|
|
|
|
- conf="$HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.conf_letsencrypt"
|
|
|
|
|
- sconf="$HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.ssl.conf_letsencrypt"
|
|
|
|
|
- fi
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if [ "$WEB_SYSTEM" = 'nginx' ] || [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
|
|
|
|
+ conf="$HOMEDIR/$user/conf/web/$domain/nginx.conf_letsencrypt"
|
|
|
|
|
+ sconf="$HOMEDIR/$user/conf/web/$domain/nginx.ssl.conf_letsencrypt"
|
|
|
if [ ! -e "$conf" ]; then
|
|
if [ ! -e "$conf" ]; then
|
|
|
echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
|
|
echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
|
|
|
> $conf
|
|
> $conf
|
|
@@ -249,7 +243,6 @@ for auth in $authz; do
|
|
|
fi
|
|
fi
|
|
|
$BIN/v-restart-proxy
|
|
$BIN/v-restart-proxy
|
|
|
check_result $? "Proxy restart failed" > /dev/null
|
|
check_result $? "Proxy restart failed" > /dev/null
|
|
|
-
|
|
|
|
|
else
|
|
else
|
|
|
# Get root directory from configuration
|
|
# Get root directory from configuration
|
|
|
domain_config="$HOMEDIR/$user/conf/web/$domain"
|
|
domain_config="$HOMEDIR/$user/conf/web/$domain"
|