mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update Backup.php
This commit is contained in:
parent
7d1b8e7d28
commit
3d91014e34
1 changed files with 4 additions and 4 deletions
|
@ -56,9 +56,9 @@ class Backup extends Model
|
|||
// ShellApi::safeDelete($model->path, [
|
||||
// Storage::path('backups')
|
||||
// ]);
|
||||
if (Storage::disk('backups')->exists($model->filepath)) {
|
||||
Storage::disk('backups')->delete($model->filepath);
|
||||
}
|
||||
// if (Storage::disk('backups')->exists($model->filepath)) {
|
||||
// Storage::disk('backups')->delete($model->filepath);
|
||||
// }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ class Backup extends Model
|
|||
if (Str::contains($checkProcess, $this->process_id)) {
|
||||
|
||||
|
||||
$this->size = Helpers::checkPathSize($this->path);
|
||||
$this->size = 0;
|
||||
$this->backup_log = file_get_contents($this->path.'/backup.log');
|
||||
$this->save();
|
||||
|
||||
|
|
Loading…
Reference in a new issue