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
bd53013d4b
commit
bc322f7084
1 changed files with 2 additions and 7 deletions
|
@ -52,13 +52,8 @@ class Backup extends Model
|
|||
});
|
||||
|
||||
static::deleting(function ($model) {
|
||||
if (is_file($model->filepath)) {
|
||||
// ShellApi::safeDelete($model->path, [
|
||||
// Storage::path('backups')
|
||||
// ]);
|
||||
// if (Storage::disk('backups')->exists($model->filepath)) {
|
||||
// Storage::disk('backups')->delete($model->filepath);
|
||||
// }
|
||||
if (is_file($model->file_path)) {
|
||||
shell_exec('rm -rf ' . $model->file_path);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue