diff --git a/web/app/Models/HostingSubscriptionBackup.php b/web/app/Models/HostingSubscriptionBackup.php index c2fbf5c..5ab05a7 100644 --- a/web/app/Models/HostingSubscriptionBackup.php +++ b/web/app/Models/HostingSubscriptionBackup.php @@ -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); + } }); }