Skip to content

Commit b20d4a8

Browse files
authored
HOTFIX
Installer failed on SRS config copy
1 parent 3c793e5 commit b20d4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,13 @@ def install(self, config_dir: str, user: str, database: str):
421421
"home": os.path.join(SAVED_GAMES, instance)
422422
}
423423
if srs_path:
424-
srs_config = os.path.join('{instance.home}', 'Config', 'SRS.cfg')
425424
node['instances'][instance]['extensions'] = {
426425
"SRS": {
427-
"config": srs_config,
426+
"config": "{instance.home}/Config/SRS.cfg",
428427
"port": srs_port
429428
}
430429
}
430+
srs_config = os.path.join(SAVED_GAMES, instance, 'Config', 'SRS.cfg')
431431
if not os.path.exists(os.path.expandvars(srs_config)):
432432
if os.path.exists(os.path.join(srs_path, "server.cfg")):
433433
shutil.copy2(os.path.join(srs_path, "server.cfg"), os.path.expandvars(srs_config))

0 commit comments

Comments
 (0)