mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 17:14:53 +02:00
Don't run on OCC
Fixes https://github.com/nextcloud/user_saml/issues/46 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
edff077ea0
commit
d02ac11b12
|
@ -21,6 +21,12 @@
|
|||
|
||||
require_once __DIR__ . '/../3rdparty/vendor/autoload.php';
|
||||
|
||||
// If we run in CLI mode do not setup the app as it can fail the OCC execution
|
||||
// since the URLGenerator isn't accessible.
|
||||
if(OC::$CLI) {
|
||||
return;
|
||||
}
|
||||
|
||||
\OCP\App::registerAdmin('user_saml', 'admin');
|
||||
\OCP\App::registerPersonal('user_saml', 'personal');
|
||||
|
||||
|
|
Loading…
Reference in a new issue