We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 905a4af + 0eaa35a commit 0c1e07fCopy full SHA for 0c1e07f
web/edit/web/index.php
@@ -506,8 +506,17 @@
506
exec (HESTIA_CMD."v-add-letsencrypt-domain ".$user." ".escapeshellarg($v_domain)." ".escapeshellarg($l_aliases)." ''", $output, $return_var);
507
check_return_code($return_var,$output);
508
unset($output);
509
- $v_letsencrypt = 'yes';
+ if($return_var != 0){
510
+ $v_letsencrypt = 'no';
511
+ }else{
512
+ $v_letsencrypt = 'yes';
513
+ }
514
$v_ssl = 'yes';
515
+ if($_POST['v_ssl_forcessl'] == 'on'){
516
+ $v_ssl_forcessl = 'yes';
517
518
+ $v_ssl_forcessl = 'no';
519
520
$restart_web = 'yes';
521
$restart_proxy = 'yes';
522
}
0 commit comments