Skip to content

Commit 1260965

Browse files
authored
ServerCreationService: send 'start_on_completion' option to wings (pterodactyl#3431)
1 parent cc05b08 commit 1260965

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/Services/Servers/ServerCreationService.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,12 @@ public function handle(array $data, DeploymentObject $deployment = null): Server
162162

163163
try {
164164
$this->daemonServerRepository->setServer($server)->create(
165-
$this->configurationStructureService->handle($server)
165+
array_merge(
166+
$this->configurationStructureService->handle($server),
167+
[
168+
'start_on_completion' => Arr::get($data, 'start_on_completion', false),
169+
],
170+
),
166171
);
167172
} catch (DaemonConnectionException $exception) {
168173
$this->serverDeletionService->withForce(true)->handle($server);

0 commit comments

Comments
 (0)