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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user