|
@@ 141-143 (lines=3) @@
|
| 138 |
|
$locator = $container['utils.locator']; |
| 139 |
|
|
| 140 |
|
$file = $locator->getPathToVersionFile(); |
| 141 |
|
if (!file_exists($file) || !is_file($file)){ |
| 142 |
|
throw new \RuntimeException('ownCloud is not found in ' . dirname($file)); |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
// assert minimum version |
| 146 |
|
$installedVersion = implode('.', $locator->getInstalledVersion()); |
|
@@ 153-155 (lines=3) @@
|
| 150 |
|
|
| 151 |
|
// has to be installed |
| 152 |
|
$file = $locator->getPathToConfigFile(); |
| 153 |
|
if (!file_exists($file) || !is_file($file)){ |
| 154 |
|
throw new \RuntimeException('ownCloud in ' . dirname(dirname($file)) . ' is not installed.'); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |