mirror of https://gerrit.hackerspace.pl/hscloud
19 lines
347 B
Bash
19 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 "$@"
|