mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 17:10:29 +00:00
Update RunRepair.php
This commit is contained in:
parent
890f824c06
commit
b2c13ba836
1 changed files with 7 additions and 7 deletions
|
@ -37,13 +37,13 @@ class RunRepair extends Command
|
||||||
{
|
{
|
||||||
|
|
||||||
// Find broken domains
|
// Find broken domains
|
||||||
$findBrokenDomains = Domain::where('status', Domain::STATUS_BROKEN)->get();
|
// $findBrokenDomains = Domain::where('status', Domain::STATUS_BROKEN)->get();
|
||||||
if ($findBrokenDomains) {
|
// if ($findBrokenDomains) {
|
||||||
foreach ($findBrokenDomains as $brokenDomain) {
|
// foreach ($findBrokenDomains as $brokenDomain) {
|
||||||
$brokenDomain->status = Domain::STATUS_ACTIVE;
|
// $brokenDomain->status = Domain::STATUS_ACTIVE;
|
||||||
$brokenDomain->saveQuietly();
|
// $brokenDomain->saveQuietly();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Overwrite supervisor config file
|
// Overwrite supervisor config file
|
||||||
$workersCount = (int) setting('general.supervisor_workers_count');
|
$workersCount = (int) setting('general.supervisor_workers_count');
|
||||||
|
|
Loading…
Reference in a new issue