forked from hswaw/hscloud
Sergiusz Bazanski
480505768d
We turn the existing experimental BUILD file into a nicely abstracted starlark rule generator, for generating both external repositories and container build rules from a single source of truth. We also add 0.18.22 (which we already pushed via :push_latest). Change-Id: I521d6e5cb9447eaf6f237671b7ef07d621cd9c77
18 lines
347 B
Bash
18 lines
347 B
Bash
#!/bin/bash
|
|
|
|
echo "entrypoint.sh starting..."
|
|
|
|
if [ ! -d /data ]; then
|
|
echo "/data is not mounted, exiting."
|
|
exit 1
|
|
fi
|
|
|
|
cd /data
|
|
|
|
if [ ! -f /data/game.zip ]; then
|
|
echo "No save game, creating new..."
|
|
/factorio/bin/x64/factorio --create game
|
|
fi
|
|
|
|
echo "Running with args: $@"
|
|
exec /factorio/bin/x64/factorio --start-server game "$@"
|