mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Move old directory on install
This commit is contained in:
@@ -42,6 +42,12 @@ function install()
|
|||||||
function createConfigurationDirectory()
|
function createConfigurationDirectory()
|
||||||
{
|
{
|
||||||
$this->files->ensureDirExists(VALET_HOME_PATH, user());
|
$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