diff --git a/app/Services/Servers/StartupModificationService.php b/app/Services/Servers/StartupModificationService.php index 66645e4f2..d9aee68b8 100644 --- a/app/Services/Servers/StartupModificationService.php +++ b/app/Services/Servers/StartupModificationService.php @@ -93,10 +93,15 @@ class StartupModificationService ]); } + $startup = $server->startup; + if (Arr::exists($data, 'startup')) { + $startup = $data['startup']; + } + $server->fill([ - 'startup' => $data['startup'] ?? $server->startup, + 'startup' => $startup, 'skip_scripts' => $data['skip_scripts'] ?? isset($data['skip_scripts']), - 'image' => $data['docker_image'] ?? $server->image, + 'image' => $data['image'] ?? $server->image, ])->save(); } }