mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Merge pull request #629 from drbyte/fix-for-config-dir-move
Fix errors from relocation of config dir
This commit is contained in:
@@ -41,14 +41,14 @@ function install()
|
||||
*/
|
||||
function createConfigurationDirectory()
|
||||
{
|
||||
$this->files->ensureDirExists(VALET_HOME_PATH, user());
|
||||
|
||||
$oldPath = posix_getpwuid(fileowner(__FILE__))['dir'].'/.valet';
|
||||
|
||||
if ($this->files->isDir($oldPath)) {
|
||||
$this->prependPath(VALET_HOME_PATH.'/Sites');
|
||||
rename($oldPath, VALET_HOME_PATH);
|
||||
$this->prependPath(VALET_HOME_PATH.'/Sites');
|
||||
}
|
||||
|
||||
$this->files->ensureDirExists(VALET_HOME_PATH, user());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user