mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
Update Backup.php
This commit is contained in:
parent
bca5e2b9b1
commit
0b11ce9324
1 changed files with 5 additions and 3 deletions
|
@ -161,10 +161,12 @@ class Backup extends Model
|
|||
$checkProcess = shell_exec('ps -p ' . $this->process_id . ' | grep ' . $this->process_id);
|
||||
if (Str::contains($checkProcess, $this->process_id)) {
|
||||
|
||||
// $backupLog = file_get_contents($this->path.'/backup.log');
|
||||
// $backupLog = substr($backupLog, -3000, 3000);
|
||||
|
||||
$this->size = 0;
|
||||
$this->backup_log = file_get_contents($this->path.'/backup.log');
|
||||
$this->save();
|
||||
// $this->size = 0;
|
||||
//$this->backup_log = $backupLog;
|
||||
// $this->save();
|
||||
|
||||
return [
|
||||
'status' => 'processing',
|
||||
|
|
Loading…
Reference in a new issue