maintenance_service 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/env php
  2. <?php
  3. /*
  4. * FusionPBX
  5. * Version: MPL 1.1
  6. *
  7. * The contents of this file are subject to the Mozilla Public License Version
  8. * 1.1 (the "License"); you may not use this file except in compliance with
  9. * the License. You may obtain a copy of the License at
  10. * http://www.mozilla.org/MPL/
  11. *
  12. * Software distributed under the License is distributed on an "AS IS" basis,
  13. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14. * for the specific language governing rights and limitations under the
  15. * License.
  16. *
  17. * The Original Code is FusionPBX
  18. *
  19. * The Initial Developer of the Original Code is
  20. * Mark J Crane <[email protected]>
  21. * Portions created by the Initial Developer are Copyright (C) 2008-2018
  22. * the Initial Developer. All Rights Reserved.
  23. *
  24. * Contributor(s):
  25. * Mark J Crane <[email protected]>
  26. * Tim Fry <[email protected]>
  27. */
  28. //allow auto_load
  29. require_once dirname(__DIR__, 4) . '/resources/classes/auto_loader.php';
  30. new auto_loader();
  31. try {
  32. $maintenance = maintenance_service::create();
  33. exit($maintenance->run());
  34. } catch (Throwable $t) {
  35. echo $t->getMessage();
  36. exit(1);
  37. }
  38. ?>