|
|
@@ -92,7 +92,6 @@ class DeployDevController {
|
|
|
if ($GLOBALS['debug'] == true) { error_log("Replace config settings in Apache Config Template"); }
|
|
|
$configContent = str_replace(['DOCUMENTROOT', 'SERVERNAME','USERNAME', 'DOMAINNAME', 'SERVERALIAS'], [$webDir, "dev.$domain",$username,"dev.$domain", "" ], $configContent);
|
|
|
|
|
|
- /*
|
|
|
if ($GLOBALS['debug'] == true) { error_log("Running Certbot for Domain " . $domain); }
|
|
|
exec("sudo /usr/bin/certbot certonly --webroot -w /etc/apache2/letsencrypt -d dev.$domain --non-interactive --agree-tos --email admin@$domain 2>&1", $output, $returnCode);
|
|
|
if ($returnCode !== 0) {
|
|
|
@@ -101,9 +100,7 @@ class DeployDevController {
|
|
|
echo json_encode(['error' => 'Certbot failed', 'details' => implode("\n", $output)]);
|
|
|
return;
|
|
|
}
|
|
|
- */
|
|
|
if ($GLOBALS['debug'] == true) { error_log("Replace sslsettings in in Apache Config Template"); }
|
|
|
- $certDir = "/etc/letsencrypt/live/dev.$domain";
|
|
|
$configContent = str_replace('DOMAINNAME', $domain, $configContent);
|
|
|
|
|
|
if ($GLOBALS['debug'] == true) { error_log("Writing apache config file to " . $configFile); }
|