From 00c2f3a979b84567ec9ef58fbaa689ff92b47916 Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Wed, 18 Mar 2020 09:22:33 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E8=A6=86=E7=9B=96=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/admin/System.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/application/index/controller/admin/System.php b/application/index/controller/admin/System.php index 20de4118..70ff3768 100644 --- a/application/index/controller/admin/System.php +++ b/application/index/controller/admin/System.php @@ -119,25 +119,6 @@ class System extends Base $isBackup && $upgrade->backup($backup); // 备份原系统 - // 复制 env 文件 - $config = \config('database.'); - $env = str_ireplace([ - '{hostname}', - '{database}', - '{username}', - '{password}', - '{hostport}', - ], [ - $config['hostname'], - $config['database'], - $config['username'], - $config['password'], - $config['hostport'], - ], @file_get_contents($path . '.env.example')); - if (!@file_put_contents($path . '.env', $env)) { - throw new \Exception('配置文件写入失败'); - } - // 创建安装锁文件 if (!@fopen($path . 'application/install.lock', 'w')) { throw new \Exception('安装锁文件创建失败');