-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcommon.cfg.tmpl
31 lines (24 loc) · 1.02 KB
/
common.cfg.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##################################
######## Instance Settings ########
##################################
# PLACE COMMON SETTINGS HERE
#
{{if (datasource "env").Envs}}
{{ range (datasource "env").Envs -}}
{{ .name }}={{ .value | quote }}
{{ end }}
{{else}}
{{ range (datasource "env").envs -}}
{{ .name }}={{ .value | quote }}
{{ end }}
{{end}}
# TODO This handles reading the save from the right place, It doesn't handle creation
# https://github.com/GameServerManagers/LinuxGSM/blob/3f1f2aa2d8ab5e2d2b6ecb4af795b287e06b46ff/lgsm/functions/install_factorio_save.sh
# Can that ^ be done in an override? likely not if the server hasn't been installed yet...
{{if eq (getenv "LGSM_GAMESERVERNAME") "fctrserver"}}
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
savepath="${LGSM_SAVE_PATH:-${serverfiles}/save1.zip}"
parms="--start-server ${savepath} --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}"
}
{{end}}