From 8746544e5bd944e1fd17b1b8a4bc6daef715331f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 3 Jul 2013 05:10:00 +0000 Subject: [PATCH] * finish task #1465. --- bin/init.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/init.sh b/bin/init.sh index b30e26dabf..f191d78625 100755 --- a/bin/init.sh +++ b/bin/init.sh @@ -28,11 +28,13 @@ if [ ! -n "$2" ]; then fi pmsRoot=`echo "$pmsRoot" | sed 's/[/]$//g'` -if [ "`cat $basePath/../config/my.php | grep -c 'PATH_INFO'`" != 0 ];then +cat $basePath/../config/my.php |awk '$1!~/^\/\//&& $1~/\$config\->requestType/{requestType = $0} END{print requestType}'| grep -c 'PATH_INFO' > ./init.tmp +if [ "`cat ./init.tmp`" != 0 ];then requestType='PATH_INFO'; else requestType='GET'; fi +rm ./init.tmp # ztcli ztcli="$phpcli $basePath/ztcli \$*"