fix: restart sentinel once a day
This commit is contained in:
16
app/Actions/Server/RestartContainer.php
Normal file
16
app/Actions/Server/RestartContainer.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions\Server;
|
||||
|
||||
use App\Models\Server;
|
||||
use Lorisleiva\Actions\Concerns\AsAction;
|
||||
|
||||
class RestartContainer
|
||||
{
|
||||
use AsAction;
|
||||
|
||||
public function handle(Server $server, string $containerName)
|
||||
{
|
||||
$server->restartContainer($containerName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user