1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00

Move old directory on install

This commit is contained in:
Erik Berkun-Drevnig
2017-09-30 20:16:58 -04:00
parent 0fd37b0fed
commit 1e5b857c6b

View File

@@ -42,6 +42,12 @@ function install()
function createConfigurationDirectory()
{
$this->files->ensureDirExists(VALET_HOME_PATH, user());
$oldPath = posix_getpwuid(fileowner(__FILE__))['dir'].'/.config/valet';
if ($this->files->isDir($oldPath)) {
rename($oldPath, VALET_HOME_PATH);
}
}
/**