From 7e00d0a06f6b45e3ea75f06214927a5e83feba34 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Fri, 25 Jan 2019 11:45:10 +0530 Subject: [PATCH] installer changes --- public/index.php | 2 +- public/installer/Classes/Requirement.php | 72 +++++++++---------- public/installer/Views/requirements.blade.php | 52 +------------- 3 files changed, 39 insertions(+), 87 deletions(-) diff --git a/public/index.php b/public/index.php index 230334cae..ea2ec077f 100755 --- a/public/index.php +++ b/public/index.php @@ -2,7 +2,7 @@ $install = require __DIR__.'/installer/install.php'; -if (0 && !is_null($install)) { +if (!is_null($install)) { header("Location: $install"); diff --git a/public/installer/Classes/Requirement.php b/public/installer/Classes/Requirement.php index a17773022..2a81b69ca 100755 --- a/public/installer/Classes/Requirement.php +++ b/public/installer/Classes/Requirement.php @@ -117,45 +117,45 @@ class Requirement { ]; } - /** - * check installation for composer - * @return boolean - */ - private static function composerInstall() - { - $command = 'cd ../.. ; export HOME=/root && export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update; composer --version'; - exec($command, $data['composer'], $data['composer_install']); + // /** + // * check installation for composer + // * @return boolean + // */ + // private static function composerInstall() + // { + // $command = 'cd ../.. ; export HOME=/root && export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update; composer --version'; + // exec($command, $data['composer'], $data['composer_install']); - return $data['composer_install']; - } + // return $data['composer_install']; + // } - /** - * check installation for mysql - * @return boolean - */ - private static function mysqlInstall() - { - $command = 'mysql --version'; - exec($command, $data['mysql'], $data['mysql_install']); - $mysqlVersion = explode(",", $data['mysql'][0]); - $mysqlVersion = explode(" ", $mysqlVersion[0]); - $supported = false; - $minMysqlVersion = '5.7.23'; + // /** + // * check installation for mysql + // * @return boolean + // */ + // private static function mysqlInstall() + // { + // $command = 'mysql --version'; + // exec($command, $data['mysql'], $data['mysql_install']); + // $mysqlVersion = explode(",", $data['mysql'][0]); + // $mysqlVersion = explode(" ", $mysqlVersion[0]); + // $supported = false; + // $minMysqlVersion = '5.7.23'; - if ($data['mysql_install'] == 0) { - if (version_compare(end($mysqlVersion), $minMysqlVersion, '>=')) { - $supported = true; - } - } + // if ($data['mysql_install'] == 0) { + // if (version_compare(end($mysqlVersion), $minMysqlVersion, '>=')) { + // $supported = true; + // } + // } - $mysqlStatus = [ - 'current' => end($mysqlVersion), - 'minimum' => $minMysqlVersion, - 'supported' => $supported - ]; + // $mysqlStatus = [ + // 'current' => end($mysqlVersion), + // 'minimum' => $minMysqlVersion, + // 'supported' => $supported + // ]; - return $mysqlStatus; - } + // return $mysqlStatus; + // } // /** @@ -180,9 +180,9 @@ class Requirement { $phpVersion = $this->checkPHPversion(); - $composerInstall = $this->composerInstall(); + // $composerInstall = $this->composerInstall(); - $sqlInstall = $this->mysqlInstall(); + // $sqlInstall = $this->mysqlInstall(); // $nodeInstall = $this->nodeInstall(); diff --git a/public/installer/Views/requirements.blade.php b/public/installer/Views/requirements.blade.php index 7802c1cad..ab3a76290 100755 --- a/public/installer/Views/requirements.blade.php +++ b/public/installer/Views/requirements.blade.php @@ -18,20 +18,6 @@ Please wait while we are checking the requirements - $require): ?> - - $enabled) : ?> -
- - - - - ( Required) -
- - - -
@@ -39,31 +25,9 @@ PHP ( or Higher)
- -
- - - - Mysql - ( or Higher) -
- -
- - - - Composer -
- -
- - https://getcomposer.org/ - -
- - +
@@ -83,16 +47,4 @@
- - - - - - - - - - - - - + \ No newline at end of file