Bozhidar Slaveykov hace 1 año
padre
commit
aac86a0b8f

+ 1 - 1
web/app/Actions/ApacheWebsiteApplySSLVirtualHost.php

@@ -66,7 +66,7 @@ class ApacheWebsiteApplySSLVirtualHost
         $fileManagerApi = new FileManagerApi();
 
         $apache2SSLOptionsFilePath = '/etc/apache2/phyre/options-ssl-apache.conf';
-        if (!$fileManagerApi->isFileExists($apache2SSLOptionsFilePath)) {
+        if (!$fileManagerApi->fileExists($apache2SSLOptionsFilePath)) {
             $fileManagerApi->filePutContents($apache2SSLOptionsFilePath, $apache2SSLOptionsSample);
         }
 

+ 4 - 0
web/app/FileManagerApi.php

@@ -19,6 +19,10 @@ class FileManagerApi
         ShellApi::exec('ln -s ' . $source . ' ' . $destination);
     }
 
+    public function fileExists($file)
+    {
+        return file_exists($file);
+    }
     public function filePutContents($file, $data)
     {
         $tempfileName = md5($file . time() . rand(111, 999));