summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command/Notify.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Command/Notify.php')
-rw-r--r--apps/files_external/lib/Command/Notify.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php
index f649d36df78..04748117e27 100644
--- a/apps/files_external/lib/Command/Notify.php
+++ b/apps/files_external/lib/Command/Notify.php
@@ -106,9 +106,17 @@ class Notify extends Base {
if ($input->getOption('user')) {
$mount->setBackendOption('user', $input->getOption('user'));
+ } else if (isset($_ENV['NOTIFY_USER'])) {
+ $mount->setBackendOption('user', $_ENV['NOTIFY_USER']);
+ } else if (isset($_SERVER['NOTIFY_USER'])) {
+ $mount->setBackendOption('user', $_SERVER['NOTIFY_USER']);
}
if ($input->getOption('password')) {
$mount->setBackendOption('password', $input->getOption('password'));
+ } else if (isset($_ENV['NOTIFY_PASSWORD'])) {
+ $mount->setBackendOption('password', $_ENV['NOTIFY_PASSWORD']);
+ } else if (isset($_SERVER['NOTIFY_PASSWORD'])) {
+ $mount->setBackendOption('password', $_SERVER['NOTIFY_PASSWORD']);
}
try {