initial commit
This commit is contained in:
commit
d62bc29f2d
4 changed files with 100 additions and 0 deletions
10
bin/entrypoint.sh
Executable file
10
bin/entrypoint.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
FACTORIO_BIN=/root/factorio/bin/x64/factorio
|
||||
WORLDNAME=/root/saves/world.zip
|
||||
|
||||
# Create savefile, if none exists
|
||||
[ ! -f ${WORLDNAME} ] && ${FACTORIO_BIN} --create ${WORLDNAME}
|
||||
|
||||
exec ${FACTORIO_BIN} --start-server ${WORLDNAME} "$@"
|
Loading…
Add table
Add a link
Reference in a new issue