|
@@ -60,12 +60,13 @@ class ApacheWebsiteApplySSLVirtualHost
|
|
|
];
|
|
|
$apache2SSLSample = view('actions.samples.ubuntu.apache2-ssl-conf',$settings)->render();
|
|
|
|
|
|
- $apache2SSLOptionsSample = view('actions.samples.ubuntu.apache2-ssl-options-conf')->render();
|
|
|
-
|
|
|
-
|
|
|
$fileManagerApi = new FileManagerApi();
|
|
|
|
|
|
+ $apache2SSLOptionsSample = view('actions.samples.ubuntu.apache2-ssl-options-conf')->render();
|
|
|
$apache2SSLOptionsFilePath = '/etc/apache2/phyre/options-ssl-apache.conf';
|
|
|
+ if (!$fileManagerApi->isDir('/etc/apache2/phyre')) {
|
|
|
+ $fileManagerApi->mkdir('/etc/apache2/phyre');
|
|
|
+ }
|
|
|
if (!$fileManagerApi->fileExists($apache2SSLOptionsFilePath)) {
|
|
|
$fileManagerApi->filePutContents($apache2SSLOptionsFilePath, $apache2SSLOptionsSample);
|
|
|
}
|