@@ 86-88 (lines=3) @@ | ||
83 | $finder = new Finder(); |
|
84 | $finder->files()->in($this->app["config"]["nginx"]["sitesavailable"])->name("*.conf"); |
|
85 | /** @var SplFileInfo $config */ |
|
86 | foreach ($finder as $config) { |
|
87 | $this->processProvider->executeSudoCommand("ln -sf " . $this->app["config"]["nginx"]["sitesavailable"] . "/" . $config->getFilename() . " " . $this->app["config"]["nginx"]["sitesenabled"] . "/" . $config->getFilename()); |
|
88 | } |
|
89 | } else { |
|
90 | $this->writeToFirstHostFile(); |
|
91 | $finder = new Finder(); |
|
@@ 94-96 (lines=3) @@ | ||
91 | $finder = new Finder(); |
|
92 | $finder->files()->in($this->app["config"]["apache"]["sitesavailable"])->name("*.conf"); |
|
93 | /** @var SplFileInfo $config */ |
|
94 | foreach ($finder as $config) { |
|
95 | $this->processProvider->executeSudoCommand("ln -sf " . $this->app["config"]["apache"]["sitesavailable"] . "/" . $config->getFilename() . " " . $this->app["config"]["apache"]["sitesenabled"] . "/" . $config->getFilename()); |
|
96 | } |
|
97 | } |
|
98 | } |
|
99 |