File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 446446 }
447447 }
448448
449+ // Add Lets Encrypt Mail domain support
450+ if ((!empty ($ _POST ['v_ssl ' ])) && ( $ v_letsencrypt == 'no ' ) && (!empty ($ _POST ['v_letsencrypt ' ])) && empty ($ _SESSION ['error_msg ' ])) {
451+ $ l_aliases = str_replace ("\n" , ', ' , $ v_aliases );
452+ exec (HESTIA_CMD ."v-add-letsencrypt-domain " .$ user ." " .$ v_domain ." ' ' 'yes' " , $ output , $ return_var );
453+ check_return_code ($ return_var ,$ output );
454+ unset($ output );
455+ $ v_letsencrypt = 'yes ' ;
456+ $ v_ssl = 'yes ' ;
457+ $ restart_web = 'yes ' ;
458+ $ restart_proxy = 'yes ' ;
459+ }
460+
449461 // Add Force SSL
450462 if ((!empty ($ _POST ['v_ssl_forcessl ' ])) && (!empty ($ _POST ['v_ssl ' ])) && (empty ($ _SESSION ['error_msg ' ]))) {
451463 exec (HESTIA_CMD ."v-add-web-domain-ssl-force " .$ user ." " .$ v_domain , $ output , $ return_var );
You can’t perform that action at this time.
0 commit comments