* fixed bracket use for variable $ssltime

This commit is contained in:
tomo 2023-07-01 11:22:18 -06:00 committed by Retro_Guy
parent 213fe4fec4
commit 532d22a495
1 changed files with 2 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ function create_node_ssl_cert($pemfile) {
$uinfo=posix_getpwnam($CONFIG['webserver_user']);
$pubkeyfile = $ssldir.'/pubkey.pem';
$pubkeytxtfile = $webtmp.'/pubkey.txt';
$ssltime = filectime($letsencrypt['path'])."fullchain.pem";
$ssltime = filectime($letsencrypt['path'].'fullchain.pem');
if(isset($letsencrypt['path'])) {
if($ssltime > filectime($pemfile)) {
touch($config_dir.'/ssl.reload');
@ -1235,6 +1235,7 @@ function create_node_ssl_cert($pemfile) {
unlink($pubkeytxtfile);
/* Use letsencrypt */
if((isset($letsencrypt['server.pem'])) && (isset($letsencrypt['pubkey.pem']))) {
echo "Using existing LetsEncrypt certificate.\n";
file_put_contents($pemfile, $letsencrypt['server.pem'].$letsencrypt['privkey']);
file_put_contents($pubkeyfile, $letsencrypt['pubkey.pem']);
file_put_contents($pubkeytxtfile, $letsencrypt['pubkey.pem']);