switch to new order post-processing

This commit is contained in:
Enno Rehling 2019-06-10 20:42:43 +02:00
parent cf0a4119d6
commit 44d044bdde
2 changed files with 3 additions and 7 deletions

View File

@ -11,10 +11,5 @@ fi
for GAME in $*
do
if [ "$GAME" == "eressea" ]; then GAME=2 ; fi
if [ "$GAME" == "e3a" ]; then GAME=3 ; fi
if [ -e $HOME/eressea/game-$GAME/orders.queue ]
then
$HOME/bin/orders-process $GAME
fi
$HOME/eressea/orders-php/check-orders.sh $GAME
done

View File

@ -2,6 +2,7 @@
# example: orders-accept 2 de < mail.txt
game="$1"
lang="$2"
[ -z "$ERESSEA" ] && ERESSEA="$HOME/eressea"
SCRIPT=$(readlink -f "$0")
@ -21,5 +22,5 @@ filename=$(basename "$ACCEPT_FILE")
email="$ACCEPT_MAIL"
if [ -d "$ERESSEA/orders-php" ]
then
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email"
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$lang" "$email"
fi