Add read right to "other" so www-data is able to read the configuration file after the tests

This commit is contained in:
jf-cbd
2024-02-21 17:12:43 +01:00
parent 2e5f0b064c
commit a6e5f95ff4
3 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ class LoginTest extends ItopDataTestCase {
@chmod($this->sConfigPath, 0770);
$oConfig->WriteToFile();
@chmod($this->sConfigPath, 0440);
@chmod($this->sConfigPath, 0444);
}
protected function tearDown(): void {
@@ -34,7 +34,7 @@ class LoginTest extends ItopDataTestCase {
//put config back
@chmod($this->sConfigPath, 0770);
file_put_contents($this->sConfigPath, file_get_contents($this->sConfigTmpBackupFile));
@chmod($this->sConfigPath, 0440);
@chmod($this->sConfigPath, 0444);
@unlink($this->sConfigTmpBackupFile);
}
parent::tearDown();