aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/command/integrity/checkapp.php9
-rw-r--r--core/command/integrity/checkcore.php2
2 files changed, 7 insertions, 4 deletions
diff --git a/core/command/integrity/checkapp.php b/core/command/integrity/checkapp.php
index 26fa9dd655a..c61f8716dee 100644
--- a/core/command/integrity/checkapp.php
+++ b/core/command/integrity/checkapp.php
@@ -33,10 +33,11 @@ use OC\IntegrityCheck\Checker;
use OC\Core\Command\Base;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
- * Class SignApp
+ * Class CheckApp
*
* @package OC\Core\Command\Integrity
*/
@@ -54,7 +55,8 @@ class CheckApp extends Base {
$this
->setName('integrity:check-app')
->setDescription('Check an app integrity using a signature.')
- ->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check');
+ ->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check')
+ ->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to application. If none is given it will be guessed.');
}
/**
@@ -62,7 +64,8 @@ class CheckApp extends Base {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$appid = $input->getArgument('appid');
- $result = $this->checker->verifyAppSignature($appid);
+ $path = strval($input->getOption('path'));
+ $result = $this->checker->verifyAppSignature($appid, $path);
$this->writeArrayInOutputFormat($input, $output, $result);
}
diff --git a/core/command/integrity/checkcore.php b/core/command/integrity/checkcore.php
index 366076441ee..a1602b8c2ec 100644
--- a/core/command/integrity/checkcore.php
+++ b/core/command/integrity/checkcore.php
@@ -36,7 +36,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
- * Class SignApp
+ * Class CheckCore
*
* @package OC\Core\Command\Integrity
*/
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286