Skip to content

Commit 5022278

Browse files
author
Kristan Kenney
committed
Fix path name in v-*-web-domain-ssl-force
1 parent 2765420 commit 5022278

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bin/v-add-mail-domain-ssl-force

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ fi
4646
# Check if proxy is active
4747
if [ ! -z "$PROXY_SYSTEM" ] || [ ! -z "$PROXY" ]; then
4848
if ! grep --quiet "forcessl" $HESTIA/data/templates/mail/nginx/default.tpl; then
49-
$BIN/v-update-web-templates
49+
$BIN/v-update-mail-templates
5050
fi
51-
forcessl="/home/$user/conf/mail/$domain/forcessl.$PROXY_SYSTEM.conf"
51+
forcessl="/home/$user/conf/mail/$domain/$PROXY_SYSTEM.forcessl.conf"
5252
else
5353
if ! grep --quiet "forcessl" $HESTIA/data/templates/mail/nginx/default.tpl; then
54-
$BIN/v-update-web-templates
54+
$BIN/v-update-mail-templates
5555
fi
56-
forcessl="/home/$user/conf/mail/$domain/forcessl.$WEB_SYSTEM.conf"
56+
forcessl="/home/$user/conf/mail/$domain/$WEB_SYSTEM.forcessl.conf"
5757
fi
5858

5959
# Insert redirect commands

bin/v-add-web-domain-ssl-force

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ if [ ! -z "$PROXY_SYSTEM" ] || [ ! -z "$PROXY" ]; then
4848
if ! grep --quiet "forcessl" $HESTIA/data/templates/web/nginx/default.tpl; then
4949
$BIN/v-update-web-templates
5050
fi
51-
forcessl="/home/$user/conf/web/$domain/forcessl.$PROXY_SYSTEM.conf"
51+
forcessl="/home/$user/conf/web/$domain/$PROXY_SYSTEM.forcessl.conf"
5252
else
5353
if ! grep --quiet "forcessl" $HESTIA/data/templates/web/nginx/default.tpl; then
5454
$BIN/v-update-web-templates
5555
fi
56-
forcessl="/home/$user/conf/web/$domain/forcessl.$WEB_SYSTEM.conf"
56+
forcessl="/home/$user/conf/web/$domain/$WEB_SYSTEM.forcessl.conf"
5757
fi
5858

5959
# Insert redirect commands

bin/v-delete-web-domain-ssl-force

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ is_object_unsuspended 'web' 'DOMAIN' "$domain"
3838
eval $(grep "DOMAIN='$domain'" $USER_DATA/web.conf)
3939

4040
# Remove forcessl configs
41-
rm -f /home/$user/conf/web/$domain/forcessl.*.conf
41+
rm -f /home/$user/conf/web/$domain/$domain.forcessl.conf
4242

4343

4444
#----------------------------------------------------------#

0 commit comments

Comments
 (0)