Do not mark a server as "not installed" when updating it's startup arguments
This commit is contained in:
parent
2eccfcc1e3
commit
1ad8b3f37d
2 changed files with 4 additions and 2 deletions
|
@ -101,8 +101,7 @@ class StartupModificationService
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$server->forceFill([
|
$server->fill([
|
||||||
'installed' => 0,
|
|
||||||
'startup' => $data['startup'] ?? $server->startup,
|
'startup' => $data['startup'] ?? $server->startup,
|
||||||
'skip_scripts' => $data['skip_scripts'] ?? isset($data['skip_scripts']),
|
'skip_scripts' => $data['skip_scripts'] ?? isset($data['skip_scripts']),
|
||||||
'image' => $data['docker_image'] ?? $server->image,
|
'image' => $data['docker_image'] ?? $server->image,
|
||||||
|
|
|
@ -96,6 +96,9 @@ class StartupModificationServiceTest extends IntegrationTestCase
|
||||||
$this->assertSame('sample startup', $response->startup);
|
$this->assertSame('sample startup', $response->startup);
|
||||||
$this->assertSame('docker/hodor', $response->image);
|
$this->assertSame('docker/hodor', $response->image);
|
||||||
$this->assertTrue($response->skip_scripts);
|
$this->assertTrue($response->skip_scripts);
|
||||||
|
// Make sure we don't revert back to a lurking bug that causes servers to get marked
|
||||||
|
// as not installed when you modify the startup...
|
||||||
|
$this->assertSame(1, $response->installed);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue