Browse Source

Move .env.example to functions.php

Jens 2 năm trước cách đây
mục cha
commit
482c613ca6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      public/install/functions.php

+ 4 - 0
public/install/functions.php

@@ -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'];