mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Do not change SSL certs if enabling Let's Encrypt
Fixes issue noted in serghey-rodin/vesta#1008
This commit is contained in:
parent
310a379705
commit
443614a00f
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ if (!empty($_POST['save'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change SSL certificate
|
// Change SSL certificate
|
||||||
if (( $v_letsencrypt == 'no' ) && ( $v_ssl == 'yes' ) && (!empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
|
if (( $v_letsencrypt == 'no' ) && (empty($_POST['v_letsencrypt'])) && ( $v_ssl == 'yes' ) && (!empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
|
||||||
if (( $v_ssl_crt != str_replace("\r\n", "\n", $_POST['v_ssl_crt'])) || ( $v_ssl_key != str_replace("\r\n", "\n", $_POST['v_ssl_key'])) || ( $v_ssl_ca != str_replace("\r\n", "\n", $_POST['v_ssl_ca']))) {
|
if (( $v_ssl_crt != str_replace("\r\n", "\n", $_POST['v_ssl_crt'])) || ( $v_ssl_key != str_replace("\r\n", "\n", $_POST['v_ssl_key'])) || ( $v_ssl_ca != str_replace("\r\n", "\n", $_POST['v_ssl_ca']))) {
|
||||||
exec ('mktemp -d', $mktemp_output, $return_var);
|
exec ('mktemp -d', $mktemp_output, $return_var);
|
||||||
$tmpdir = $mktemp_output[0];
|
$tmpdir = $mktemp_output[0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue