Fix directory permissions

This commit is contained in:
Niklas Keller
2018-01-11 17:11:28 +01:00
parent 69bc88daf1
commit 256aa76011
3 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ class CertificateStore {
$path = $this->root . '/' . $commonName;
if (!yield File\isdir($path)) {
yield File\mkdir($path, 0644, true);
yield File\mkdir($path, 0755, true);
if (!yield File\isdir($path)) {
throw new FilesystemException("Couldn't create certificate directory: '{$path}'");

View File

@@ -23,7 +23,7 @@ class ChallengeStore {
}
if (!yield File\isdir($path)) {
yield File\mkdir($path, 0644, true);
yield File\mkdir($path, 0755, true);
if (!yield File\isdir($path)) {
throw new ChallengeStoreException("Couldn't create key directory: '{$path}'");

View File

@@ -44,7 +44,7 @@ class KeyStore {
$dir = \dirname($file);
if (!yield File\isdir($dir)) {
yield File\mkdir($dir, 0644, true);
yield File\mkdir($dir, 0755, true);
if (!yield File\isdir($dir)) {
throw new FilesystemException("Couldn't create key directory: '{$dir}'");