forked from github/server
insert language in orders.db
This commit is contained in:
parent
01fda5d3d7
commit
fdde7c8c44
|
@ -2,6 +2,7 @@
|
||||||
# example: orders-accept 2 de < mail.txt
|
# example: orders-accept 2 de < mail.txt
|
||||||
|
|
||||||
game="$1"
|
game="$1"
|
||||||
|
lang="$2"
|
||||||
|
|
||||||
[ -z "$ERESSEA" ] && ERESSEA="$HOME/eressea"
|
[ -z "$ERESSEA" ] && ERESSEA="$HOME/eressea"
|
||||||
SCRIPT=$(readlink -f "$0")
|
SCRIPT=$(readlink -f "$0")
|
||||||
|
@ -21,5 +22,5 @@ filename=$(basename "$ACCEPT_FILE")
|
||||||
email="$ACCEPT_MAIL"
|
email="$ACCEPT_MAIL"
|
||||||
if [ -d "$ERESSEA/orders-php" ]
|
if [ -d "$ERESSEA/orders-php" ]
|
||||||
then
|
then
|
||||||
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email"
|
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email" "$lang"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue