enable_all.php 596 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. require_once __DIR__.'/../lib/base.php';
  8. function enableApp($app) {
  9. try {
  10. (new \OC_App())->enable($app);
  11. } catch (Exception $e) {
  12. echo $e;
  13. }
  14. }
  15. enableApp('files_sharing');
  16. enableApp('files_trashbin');
  17. enableApp('encryption');
  18. enableApp('user_ldap');
  19. enableApp('files_versions');
  20. enableApp('provisioning_api');
  21. enableApp('federation');
  22. enableApp('federatedfilesharing');
  23. enableApp('admin_audit');