mirror of
https://github.com/demostf/migrate.git
synced 2026-06-03 17:24:10 +02:00
explicitly set permissions
This commit is contained in:
parent
908ee8bf07
commit
5ba374897a
1 changed files with 4 additions and 2 deletions
|
|
@ -51,7 +51,9 @@ class Migrate {
|
|||
throw new \Exception('hash mismatch even after re-download: ' . $this->store->generatePath($name));
|
||||
}
|
||||
|
||||
unlink($this->store->generatePath($name));
|
||||
rename($tmpFile, $this->store->generatePath($name));
|
||||
$path = $this->store->generatePath($name);
|
||||
unlink($path);
|
||||
rename($tmpFile, $path);
|
||||
chmod($path, 0644);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue