diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-12-01 18:50:27 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-16 17:48:37 +0100 |
commit | 93a8eba1375678f69ba666f5fedde602a911c58c (patch) | |
tree | 7b1054343ccc281ff8d991e2a06d9f3a52f65841 /core/Command | |
parent | b0c1460a1d7d71cb752637b42154cd515c2b489e (diff) | |
download | nextcloud-server-93a8eba1375678f69ba666f5fedde602a911c58c.tar.gz nextcloud-server-93a8eba1375678f69ba666f5fedde602a911c58c.zip |
Return 1 if integrity check is failed. Fixes #22806
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Integrity/CheckApp.php | 3 | ||||
-rw-r--r-- | core/Command/Integrity/CheckCore.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php index 0774cca6582..3e4d8b9cba7 100644 --- a/core/Command/Integrity/CheckApp.php +++ b/core/Command/Integrity/CheckApp.php @@ -66,6 +66,9 @@ class CheckApp extends Base { $path = strval($input->getOption('path')); $result = $this->checker->verifyAppSignature($appid, $path); $this->writeArrayInOutputFormat($input, $output, $result); + if (count($result)>0){ + return 1; + } } } diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php index 5aaf9c2dec8..a3426ce9345 100644 --- a/core/Command/Integrity/CheckCore.php +++ b/core/Command/Integrity/CheckCore.php @@ -60,5 +60,8 @@ class CheckCore extends Base { protected function execute(InputInterface $input, OutputInterface $output) { $result = $this->checker->verifyCoreSignature(); $this->writeArrayInOutputFormat($input, $output, $result); + if (count($result)>0){ + return 1; + } } } |