Skip to content

Commit 69f5383

Browse files
committed
fix(installer): throw an exception only if app store is also enabled
Signed-off-by: Kent Delante <kent@delante.me>
1 parent ebcc786 commit 69f5383

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getInstallPath(): ?string {
136136
foreach (\OC::$APPSROOTS as $dir) {
137137
if (isset($dir['writable']) && $dir['writable'] === true) {
138138
// Check if there is a writable install folder.
139-
if (!is_writable($dir['path'])
139+
if ((!is_writable($dir['path']) && $this->config->getSystemValueBool('appstoreenabled', true))
140140
|| !is_readable($dir['path'])
141141
) {
142142
throw new \RuntimeException(

0 commit comments

Comments
 (0)