|
@@ 242-244 (lines=3) @@
|
| 239 |
|
|
| 240 |
|
// has to be installed |
| 241 |
|
$file = $locator->getPathToConfigFile(); |
| 242 |
|
if (!file_exists($file) || !is_file($file)){ |
| 243 |
|
throw new \RuntimeException('ownCloud in ' . dirname(dirname($file)) . ' is not installed.'); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
// version.php should exist |
| 247 |
|
$file = $locator->getPathToVersionFile(); |
|
@@ 248-250 (lines=3) @@
|
| 245 |
|
|
| 246 |
|
// version.php should exist |
| 247 |
|
$file = $locator->getPathToVersionFile(); |
| 248 |
|
if (!file_exists($file) || !is_file($file)){ |
| 249 |
|
throw new \RuntimeException('ownCloud is not found in ' . dirname($file)); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
// datadir should exist |
| 253 |
|
$dataDir = $locator->getDataDir(); |