mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Fix DnsMasq path, remove incorrect use of rewrite secure
This commit is contained in:
@@ -9,7 +9,7 @@ class Configuration
|
||||
/**
|
||||
* Create a new Valet configuration class instance.
|
||||
*
|
||||
* @param Filesystem $filesystem
|
||||
* @param Filesystem $files
|
||||
*/
|
||||
function __construct(Filesystem $files)
|
||||
{
|
||||
@@ -47,7 +47,6 @@ function createConfigurationDirectory()
|
||||
|
||||
if ($this->files->isDir($oldPath)) {
|
||||
rename($oldPath, VALET_HOME_PATH);
|
||||
Nginx::rewriteSecureNginxFiles();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,6 +87,9 @@ function copyExampleConfig()
|
||||
*/
|
||||
function appendCustomConfigImport($customConfigPath)
|
||||
{
|
||||
$contents = preg_replace('/^conf-file=.*\/\.valet\/.*$/m', '', $this->files->get($this->configPath));
|
||||
$this->files->putAsUser($this->configPath, $contents);
|
||||
|
||||
if (! $this->customConfigIsBeingImported($customConfigPath)) {
|
||||
$this->files->appendAsUser(
|
||||
$this->configPath,
|
||||
|
||||
Reference in New Issue
Block a user