fix(installer): throw an exception only if app store is also enabled

Signed-off-by: Kent Delante <kent@delante.me>
This commit is contained in:
Kent Delante 2026-04-14 13:19:06 +08:00
parent ebcc786841
commit 69f5383abe

View file

@ -136,7 +136,7 @@ class Installer {
foreach (\OC::$APPSROOTS as $dir) {
if (isset($dir['writable']) && $dir['writable'] === true) {
// Check if there is a writable install folder.
if (!is_writable($dir['path'])
if ((!is_writable($dir['path']) && $this->config->getSystemValueBool('appstoreenabled', true))
|| !is_readable($dir['path'])
) {
throw new \RuntimeException(