Docker image which provides a full Eressea installation to host a local game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
815 B

  1. --- /eressea/server/bin/run-eressea.cron 2020-12-12 15:09:21.000000000 +0000
  2. +++ /eressea/run-eressea.sh 2020-12-07 21:09:58.000000000 +0000
  3. @@ -1,7 +1,12 @@
  4. #!/bin/bash
  5. +# this script is based on run-eressea.cron
  6. +# differences to original
  7. +# it is possible to run a turn with empty orders
  8. +
  9. eval "$(luarocks path)"
  10. GAME=$1
  11. +ENABLE_EMPTY_ORDERS=$2
  12. (
  13. [ "$ENABLED" == "no" ] && exit
  14. [ -z "$ERESSEA" ] && ERESSEA="$HOME/eressea"
  15. @@ -27,8 +32,10 @@
  16. "$BIN/create-orders" "$GAME" "$TURN"
  17. if [ ! -s "$ERESSEA/game-$GAME/orders.$TURN" ]; then
  18. - echo "server did not create orders for turn $TURN in game $GAME"
  19. - exit 2
  20. + if [ "$ENABLE_EMPTY_ORDERS" != "yes" ]; then
  21. + echo "server did not create orders for turn $TURN in game $GAME"
  22. + exit 2
  23. + fi
  24. fi
  25. "$BIN/backup-eressea" "$GAME" "$TURN"