Fix directory permissions
This commit is contained in:
@@ -48,7 +48,7 @@ class CertificateStore {
|
|||||||
$path = $this->root . '/' . $commonName;
|
$path = $this->root . '/' . $commonName;
|
||||||
|
|
||||||
if (!yield File\isdir($path)) {
|
if (!yield File\isdir($path)) {
|
||||||
yield File\mkdir($path, 0644, true);
|
yield File\mkdir($path, 0755, true);
|
||||||
|
|
||||||
if (!yield File\isdir($path)) {
|
if (!yield File\isdir($path)) {
|
||||||
throw new FilesystemException("Couldn't create certificate directory: '{$path}'");
|
throw new FilesystemException("Couldn't create certificate directory: '{$path}'");
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class ChallengeStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!yield File\isdir($path)) {
|
if (!yield File\isdir($path)) {
|
||||||
yield File\mkdir($path, 0644, true);
|
yield File\mkdir($path, 0755, true);
|
||||||
|
|
||||||
if (!yield File\isdir($path)) {
|
if (!yield File\isdir($path)) {
|
||||||
throw new ChallengeStoreException("Couldn't create key directory: '{$path}'");
|
throw new ChallengeStoreException("Couldn't create key directory: '{$path}'");
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class KeyStore {
|
|||||||
$dir = \dirname($file);
|
$dir = \dirname($file);
|
||||||
|
|
||||||
if (!yield File\isdir($dir)) {
|
if (!yield File\isdir($dir)) {
|
||||||
yield File\mkdir($dir, 0644, true);
|
yield File\mkdir($dir, 0755, true);
|
||||||
|
|
||||||
if (!yield File\isdir($dir)) {
|
if (!yield File\isdir($dir)) {
|
||||||
throw new FilesystemException("Couldn't create key directory: '{$dir}'");
|
throw new FilesystemException("Couldn't create key directory: '{$dir}'");
|
||||||
|
|||||||
Reference in New Issue
Block a user