Skip to content

Commit

Permalink
Merge pull request #45 from HepplerDotNet/patch-6
Browse files Browse the repository at this point in the history
Make File Permissions for mkdir configurable
  • Loading branch information
Brotzka committed May 30, 2018
2 parents b1e84a6 + 5a4f06e commit 87d4249
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DotenvEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct()
{
$backupPath = config('dotenveditor.backupPath', base_path() . '/resources/backups/dotenv-editor/');
$env = config('dotenveditor.pathToEnv', base_path() . '/.env');
$filePermissions = config('dotenveditor.filePermissions');

if(!file_exists($env)){
return false;
Expand All @@ -41,7 +42,7 @@ public function __construct()
$this->env = $env;

if(!is_dir($backupPath)){
mkdir($backupPath, 0777, true);
mkdir($backupPath, $filePermissions, true);
}
$this->backupPath = $backupPath;
}
Expand Down

0 comments on commit 87d4249

Please sign in to comment.