|
@@ 155-157 (lines=3) @@
|
| 152 |
|
|
| 153 |
|
// has to be installed |
| 154 |
|
$file = $locator->getPathToConfigFile(); |
| 155 |
|
if (!file_exists($file) || !is_file($file)){ |
| 156 |
|
throw new \RuntimeException('ownCloud in ' . dirname(dirname($file)) . ' is not installed.'); |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
// version.php should exist |
| 160 |
|
$file = $locator->getPathToVersionFile(); |
|
@@ 161-163 (lines=3) @@
|
| 158 |
|
|
| 159 |
|
// version.php should exist |
| 160 |
|
$file = $locator->getPathToVersionFile(); |
| 161 |
|
if (!file_exists($file) || !is_file($file)){ |
| 162 |
|
throw new \RuntimeException('ownCloud is not found in ' . dirname($file)); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
// datadir should exist |
| 166 |
|
$dataDir = $locator->getDataDir(); |