mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
check if cache is writable
This commit is contained in:
parent
fec5875f07
commit
886a5eaf62
|
|
@ -58,6 +58,11 @@ class DownloadextensionCommand extends Command
|
||||||
|
|
||||||
$output->writeln("<comment>Using configuration from '".$settings->_configFilePath."'.</comment>", OutputInterface::VERBOSITY_VERBOSE);
|
$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');
|
$reposurl = $input->getOption('url');
|
||||||
if($reposurl)
|
if($reposurl)
|
||||||
$extmgr->setRepositoryUrl($reposurl);
|
$extmgr->setRepositoryUrl($reposurl);
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,11 @@ class UpdateextensionCommand extends Command
|
||||||
|
|
||||||
$output->writeln("<comment>Using configuration from '".$settings->_configFilePath."'.</comment>", OutputInterface::VERBOSITY_VERBOSE);
|
$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');
|
$reposurl = $input->getOption('url');
|
||||||
if($reposurl)
|
if($reposurl)
|
||||||
$extmgr->setRepositoryUrl($reposurl);
|
$extmgr->setRepositoryUrl($reposurl);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user