|
@@ -3,11 +3,11 @@ set -e
|
|
|
spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/fcgi_run.php"
|
|
|
|
|
|
time=$(date "+%Y%m%d")
|
|
|
-$logfile="/var/www/html/data/log/${time}.log"
|
|
|
-echo $logfile
|
|
|
+#$logfile="/var/www/html/data/log/${time}.log"
|
|
|
+#echo $logfile
|
|
|
|
|
|
-if [ ! -f $logfile ]; then
|
|
|
- touch $logfile
|
|
|
+if [ ! -f "/var/www/html/data/log/${time}.log" ]; then
|
|
|
+ touch "/var/www/html/data/log/${time}.log"
|
|
|
fi
|
|
|
|
|
|
-tail -f $logfile
|
|
|
+tail -f "/var/www/html/data/log/${time}.log"
|