Fix: environment file crashes installer on new installations (#783)
This commit is contained in:
commit
3949529c32
2 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,10 @@ use Monolog\Formatter\LineFormatter;
|
|||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Logger;
|
||||
|
||||
if (!file_exists('../../.env')) {
|
||||
echo run_console('cp .env.example .env');
|
||||
}
|
||||
|
||||
(new DotEnv(dirname(__FILE__, 3) . '/.env'))->load();
|
||||
|
||||
$required_extensions = ['openssl', 'gd', 'mysql', 'PDO', 'mbstring', 'tokenizer', 'bcmath', 'xml', 'curl', 'zip', 'intl'];
|
||||
|
|
|
@ -53,9 +53,6 @@ $cardheader = '
|
|||
<div class="card-body bg-light">';
|
||||
|
||||
if (!isset($_GET['step'])) {
|
||||
if (!file_exists('../../.env')) {
|
||||
echo run_console('cp .env.example .env');
|
||||
}
|
||||
echo $cardheader; ?>
|
||||
<p class="login-box-msg">This installer will lead you through the most crucial Steps of Controlpanel.gg`s
|
||||
setup</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue