Commit 7c073e1d authored by mku's avatar mku

ZP-450 #comment Errorlog always has an updated modification timestamp even...

ZP-450 #comment   Errorlog always has an updated modification timestamp even without having new messages  #time 10m

git-svn-id: https://z-push.org/svn/z-push/trunk@1735 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 1ac0cb32
......@@ -230,10 +230,10 @@ class ZPush {
if (!file_exists(LOGFILEDIR))
throw new FatalMisconfigurationException("The configured LOGFILEDIR does not exist or can not be accessed.");
if (!touch(LOGFILE))
if (!is_writable(LOGFILE))
throw new FatalMisconfigurationException("The configured LOGFILE can not be modified.");
if (!touch(LOGERRORFILE))
if (!is_writable(LOGERRORFILE))
throw new FatalMisconfigurationException("The configured LOGERRORFILE can not be modified.");
// check ownership on the (eventually) just created files
......
......@@ -74,7 +74,7 @@ class FileStateMachine implements IStateMachine {
$this->userfilename = STATE_DIR . 'users';
$this->settingsfilename = STATE_DIR . 'settings';
if (!touch($this->userfilename))
if (!is_writable($this->userfilename))
throw new FatalMisconfigurationException("Not possible to write to the configured state directory.");
Utils::FixFileOwner($this->userfilename);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment