mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 15:10:25 +00:00
Update HostingSubscriptionBackup.php
This commit is contained in:
parent
6e18fb4513
commit
e4c172218a
1 changed files with 3 additions and 3 deletions
|
@ -60,9 +60,9 @@ class HostingSubscriptionBackup extends Model
|
|||
});
|
||||
|
||||
static::deleting(function ($model) {
|
||||
// if (is_file($model->filepath)) {
|
||||
// shell_exec('rm -rf ' . $model->filepath);
|
||||
// }
|
||||
if (is_file($model->file_path)) {
|
||||
shell_exec('rm -rf ' . $model->file_path);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue