feat: add automation features (auto-update, auto-start, scheduled updates)

This commit is contained in:
MrFastwind
2026-07-06 16:10:17 +02:00
parent b853aead8c
commit 149a60c6fb
12 changed files with 325 additions and 30 deletions

View File

@@ -54,13 +54,18 @@ func (sm *SettingsManager) Save(s *models.ServerSettings) error {
func (sm *SettingsManager) defaults() *models.ServerSettings {
return &models.ServerSettings{
IPPort: "0.0.0.0:2302",
ServerParameters: "-server -world=empty -loadMissionToMemory -noPause",
SteamBranch: "stable",
SteamUser: "anonymous",
Platform: "linux",
ActiveConfig: "",
ActiveModlist: "",
UpdatedAt: time.Now().UTC(),
IPPort: "0.0.0.0:2302",
ServerParameters: "-server -world=empty -loadMissionToMemory -noPause",
SteamBranch: "stable",
SteamUser: "anonymous",
Platform: "linux",
ActiveConfig: "",
ActiveModlist: "",
AutoUpdateOnStartup: false,
AutoStartOnStartup: false,
AutoUpdateModsOnStartup: false,
WasRunning: false,
ScheduledUpdate: "",
UpdatedAt: time.Now().UTC(),
}
}