forked from FreePBX/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·22 lines (16 loc) · 704 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·22 lines (16 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env php
<?php
namespace FreePBX\Install;
if (version_compare(PHP_VERSION, '7.4', '<')) {
echo "FreePBX Requires PHP Version 7.4 or Higher, you have: ".PHP_VERSION."\n";
return false;
}
set_time_limit(0);
require_once(__DIR__.'/amp_conf/htdocs/admin/libraries/Composer/vendor/autoload.php');
require_once(__DIR__.'/installlib/installhelpcommand.class.php');
require_once(__DIR__.'/installlib/installapplication.class.php');
require_once(__DIR__.'/installlib/installcommand.class.php');
use Symfony\Component\Console\Application;
$xml = simplexml_load_file(__DIR__."/module.xml");
$app = new FreePBXInstallApplication("FreePBX Installation Utility", (string)$xml->version);
$app->run();