Skip to content

Commit

Permalink
fix(chore): correct rights of already created icon folder (centreon#8812
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sc979 committed Jun 26, 2020
1 parent 5a91ef2 commit ff2b9f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/class/centreonMedia.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ private function createDirectory($dirname)

// Create directory and nested folder structure
if (!is_dir($fullPath)) {
mkdir($fullPath, 644, true);
mkdir($fullPath, 0755, true);
} elseif (fileperms($fullPath) !== 0755) {
chmod($fullPath, 0755);
}
}

Expand Down

0 comments on commit ff2b9f8

Please sign in to comment.