2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 13:37:13 +08:00

特性(命令行):优化升级流程

This commit is contained in:
耗子
2022-12-01 14:43:00 +08:00
parent d5eed03dae
commit 0e4f5cc29d

View File

@@ -103,7 +103,7 @@ class Panel extends Command
$this->info(shell_exec('rm -rf /www/panel'));
$this->info(shell_exec('mkdir /www/panel'));
$this->info('正在解压新版本...');
$this->info(shell_exec('unzip /tmp/panel.zip -d /www/panel'));
$this->info(shell_exec('unzip -o /tmp/panel.zip -d /www/panel'));
$this->info('正在恢复数据库...');
$this->info(shell_exec('\cp /tmp/database.sqlite /www/panel/database/database.sqlite'));
$this->info('正在恢复插件...');