From e4c172218ac0f26236643964cdf8c2054926356d Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 7 May 2024 17:07:09 +0300 Subject: [PATCH] Update HostingSubscriptionBackup.php --- web/app/Models/HostingSubscriptionBackup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); + } }); }