File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 4646# Check if proxy is active
4747if [ ! -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"
5252else
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"
5757fi
5858
5959# Insert redirect commands
Original file line number Diff line number Diff 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"
5252else
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"
5757fi
5858
5959# Insert redirect commands
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ is_object_unsuspended 'web' 'DOMAIN' "$domain"
3838eval $( 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# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments