|
|
@ -16,7 +16,7 @@ rconpassword="CHANGE_ME" |
|
|
|
|
|
|
|
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters |
|
|
|
fn_parms(){ |
|
|
|
parms="--start-server ${filesdir}/save1.zip --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}" |
|
|
|
parms="--start-server ${serverfiles}/save1.zip --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}" |
|
|
|
} |
|
|
|
|
|
|
|
#### LinuxGSM Settings #### |
|
|
@ -56,19 +56,19 @@ engine="factorio" |
|
|
|
# Edit with care |
|
|
|
|
|
|
|
## Server Specific Directories |
|
|
|
systemdir="${filesdir}" |
|
|
|
executabledir="${filesdir}/bin/x64" |
|
|
|
systemdir="${serverfiles}" |
|
|
|
executabledir="${serverfiles}/bin/x64" |
|
|
|
executable="./factorio" |
|
|
|
servercfg="${servicename}.json" |
|
|
|
servercfgdefault="server-settings.json" |
|
|
|
servercfgdir="${filesdir}/data" |
|
|
|
servercfgdir="${serverfiles}/data" |
|
|
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
|
|
|
|
|
|
|
## Backup Directory |
|
|
|
backupdir="${rootdir}/backups" |
|
|
|
|
|
|
|
## Logging Directories |
|
|
|
gamelogdir="${filesdir}" |
|
|
|
gamelogdir="${serverfiles}" |
|
|
|
lgsmlogdir="${logdir}/script" |
|
|
|
consolelogdir="${logdir}/console" |
|
|
|
lgsmlog="${lgsmlogdir}/${servicename}-script.log" |
|
|
|