Commit 3d3a8f36 authored by anarcat's avatar anarcat

treat symlinks as existing, fixes #2046249

this is important for SSL certificates which may be symlink to files
that are unreadable by Aegir (which is fine, as Apache can read them
because it starts as root).

I assume the impact on other uses of ->exists() will be negligible.

See #2046249.

Conflicts:
	provision.file.inc
parent 8b1d8a52
......@@ -50,7 +50,7 @@ class Provision_FileSystem extends Provision_ChainedState {
function exists($path) {
$this->_clear_state();
$this->last_status = file_exists($path);
$this->last_status = file_exists($path) || is_link($path);
$this->tokens = array('@path' => $path);
return $this;
......
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