ensure user has write access on cache, because the extensions' config will be updated

This commit is contained in:
Uwe Steinmann 2025-11-17 20:09:13 +01:00
parent b647e6e000
commit bc03490049

View File

@ -55,6 +55,11 @@ class RepositoryextensionCommand extends Command
$output->writeln("<comment>Using configuration from '".$settings->_configFilePath."'.</comment>", OutputInterface::VERBOSITY_VERBOSE);
if (!is_writable($settings->_cacheDir)) {
$output->writeln(sprintf("<error>The cache dir '%s' is not writable for the system user running this script.</error>", $settings->_cacheDir));
return Command::FAILURE;
}
$reposurl = $input->getOption('url');
if($reposurl)
$extmgr->setRepositoryUrl($reposurl);