2017-04-30 21:58:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
FACTORIO_BIN=/root/factorio/bin/x64/factorio
|
|
|
|
WORLDNAME=/root/saves/world.zip
|
|
|
|
|
|
|
|
# Create savefile, if none exists
|
2017-10-15 20:32:16 +02:00
|
|
|
[ ! -f ${WORLDNAME} ] && ${FACTORIO_BIN} --create ${WORLDNAME} "$@"
|
2017-04-30 21:58:44 +02:00
|
|
|
|
|
|
|
exec ${FACTORIO_BIN} --start-server ${WORLDNAME} "$@"
|