11 lines
250 B
Bash
11 lines
250 B
Bash
|
#!/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} "$@"
|