Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(configuration): set correct right for centreon.conf.php (#10095)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjaouen committed Sep 7, 2021
1 parent ba674f0 commit 6a77f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/install/steps/process/configFileSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
$contents = file_get_contents('../../var/configFileTemplate');
$contents = preg_replace($patterns, $replacements, $contents);
file_put_contents($centreonConfFile, $contents);
chmod($centreonConfFile, 0660);
chown($centreonConfFile, 'apache');
chgrp($centreonConfFile, 'apache');

/**
* conf.pm
Expand Down

0 comments on commit 6a77f8d

Please sign in to comment.