#!/bin/sh
set -e
php /var/www/html/xyzshop/queue/index.php queue index
time=$(date "+%Y%m%d")
if [ ! -f "/var/www/html/xyzshop/data/log/${time}-queue.log" ]; then
touch "/var/www/html/xyzshop/data/log/${time}-queue.log"
fi
tail -f "/var/www/html/xyzshop/data/log/${time}-queue.log"