forked from github/server
switch to new order post-processing
This commit is contained in:
parent
cf0a4119d6
commit
44d044bdde
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue