mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update HostingSubscriptionBackup.php
This commit is contained in:
parent
1030589021
commit
5b20b10b90
1 changed files with 2 additions and 1 deletions
|
@ -122,6 +122,7 @@ class HostingSubscriptionBackup extends Model
|
|||
}
|
||||
|
||||
$checkProcess = shell_exec('ps -p ' . $this->process_id . ' | grep ' . $this->process_id);
|
||||
|
||||
if (Str::contains($checkProcess, $this->process_id)) {
|
||||
|
||||
$this->size = 0;
|
||||
|
@ -136,7 +137,7 @@ class HostingSubscriptionBackup extends Model
|
|||
$this->save();
|
||||
return [
|
||||
'status' => 'failed',
|
||||
'message' => 'Backup failed'
|
||||
'message' => 'Backup failed. Process not found'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue