From bc034900495ed766b3adc4a64121bd8939b3ac6d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 17 Nov 2025 20:09:13 +0100 Subject: [PATCH] ensure user has write access on cache, because the extensions' config will be updated --- utils/Commands/RepositoryextensionCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/Commands/RepositoryextensionCommand.php b/utils/Commands/RepositoryextensionCommand.php index b1f4805a0..b06fc957b 100644 --- a/utils/Commands/RepositoryextensionCommand.php +++ b/utils/Commands/RepositoryextensionCommand.php @@ -55,6 +55,11 @@ class RepositoryextensionCommand extends Command $output->writeln("Using configuration from '".$settings->_configFilePath."'.", OutputInterface::VERBOSITY_VERBOSE); + if (!is_writable($settings->_cacheDir)) { + $output->writeln(sprintf("The cache dir '%s' is not writable for the system user running this script.", $settings->_cacheDir)); + return Command::FAILURE; + } + $reposurl = $input->getOption('url'); if($reposurl) $extmgr->setRepositoryUrl($reposurl);