aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-10-08 11:27:08 +0000
committerGitHub <noreply@github.com>2020-10-08 11:27:08 +0000
commit9bdf0eed65a7cce49c60ae2f3639acdfb8213c02 (patch)
tree8725c3a4c32f2645cad9e0607624bf2455777fbd /apps/files_external/lib
parentd15179fd7b6fd76223e861dd9be31f246b1a3042 (diff)
parenta79f9605b4bfcae2a05f80add087b27929da2d90 (diff)
downloadnextcloud-server-9bdf0eed65a7cce49c60ae2f3639acdfb8213c02.tar.gz
nextcloud-server-9bdf0eed65a7cce49c60ae2f3639acdfb8213c02.zip
Merge pull request #23020 from nextcloud/disable-notify-self-check
add option to disable notify self check
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/Command/Notify.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php
index 0718b0eee66..6537e94832c 100644
--- a/apps/files_external/lib/Command/Notify.php
+++ b/apps/files_external/lib/Command/Notify.php
@@ -85,6 +85,11 @@ class Notify extends Base {
InputOption::VALUE_REQUIRED,
'The directory in the storage to listen for updates in',
'/'
+ )->addOption(
+ 'no-self-check',
+ '',
+ InputOption::VALUE_NONE,
+ 'Disable self check on startup'
);
parent::configure();
}
@@ -138,7 +143,11 @@ class Notify extends Base {
$path = trim($input->getOption('path'), '/');
$notifyHandler = $storage->notify($path);
- $this->selfTest($storage, $notifyHandler, $verbose, $output);
+
+ if (!$input->getOption('no-self-check')) {
+ $this->selfTest($storage, $notifyHandler, $verbose, $output);
+ }
+
$notifyHandler->listen(function (IChange $change) use ($mount, $verbose, $output) {
if ($verbose) {
$this->logUpdate($change, $output);