1
0
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:
Matt Stauffer
2018-09-13 22:06:41 -04:00
committed by GitHub

View File

@@ -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());
}
/**