Skip to content

Commit

Permalink
更新:优化升级命令
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Feb 18, 2023
1 parent f73b16e commit b5f4850
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/CodeFec/Upgrading.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ private function download(string $download, string $path, $no_backup = false)
return ;
}
$this->command->info("开始更新...\n");
// 生成更新锁
file_put_contents(BASE_PATH . '/app/CodeFec/storage/update.lock', time());
// 备份网站数据
$this->command->info('开始备份网站数据,网站数据会存放在:' . BASE_PATH . "/runtime/backup/backup.zip 文件中\n");
if (file_exists(BASE_PATH . '/runtime/backup/backup.zip')) {
Expand All @@ -108,7 +106,7 @@ private function download(string $download, string $path, $no_backup = false)
backup();
}
// 卸载自带组件
$this->rmPlugins();
// $this->rmPlugins();
$this->command->info("卸载自带组件...\n");
// 下载文件
$this->command->info("\n下载资源包...");
Expand Down

0 comments on commit b5f4850

Please sign in to comment.