Account for runtime RCON passwords in config drift
This commit is contained in:
@@ -38,6 +38,8 @@ import {
|
||||
type ScriptVersionRow
|
||||
} from './scripts.js';
|
||||
import { composeServerCfg } from './config-compose.js';
|
||||
import { applyRuntimePassword } from './runtime-config.js';
|
||||
import { runtimePasswordForServer } from '../backends/native.js';
|
||||
import { removeScript } from './inventory.js';
|
||||
import { cancelStagedFiles, isFileApplied, queueFileChange, stagedFileChanges } from './staged-files.js';
|
||||
import { emit } from '../pipeline/bus.js';
|
||||
@@ -138,7 +140,7 @@ function composeCfgForServer(
|
||||
.map(({ script, version }) => ({ id: script.id, text: getVersionContent(version.id).toString('utf8') }));
|
||||
|
||||
const composed = composeServerCfg(baselineText, [...promotedOverlays, ...inBetaScopedOverlays], serverGame, serverMap, getServer(serverName)?.map_slug);
|
||||
return { text: composed, baselineScriptId };
|
||||
return { text: applyRuntimePassword(composed, runtimePasswordForServer(serverName)), baselineScriptId };
|
||||
}
|
||||
|
||||
export interface BetaRow {
|
||||
|
||||
Reference in New Issue
Block a user