* pass pmsRoot to init.sh auto.

This commit is contained in:
wangchunsheng
2013-02-22 02:24:43 +00:00
parent ba7d0cd9fc
commit a2a018e42d
2 changed files with 11 additions and 2 deletions
+5 -1
View File
@@ -44,7 +44,11 @@ chmod 777 zentao/module
find zentao/ -name ext |xargs chmod -R 777
# init the shells in zentao/bin
./zentao/bin/init.sh /opt/lampp/bin/php > /dev/null 2>&1
if [ ! -f ./zentao/bin/backup.sh ]; then
ip=`ifconfig |grep inet|head -n 1 |awk -F':' '{print $2}' |awk -F ' ' '{print $1}'`
pmsRoot=http://$ip/zentao/
./zentao/bin/init.sh /opt/lampp/bin/php $pmsRoot > /dev/null 2>&1
fi
# start apache, mysql.
./lampp start
+6 -1
View File
@@ -44,7 +44,12 @@ chmod 777 zentao/module
find zentao/ -name ext |xargs chmod -R 777
# init the shells in zentao/bin
./zentao/bin/init.sh /opt/lampp/bin/php > /dev/null 2>&1
# init the shells in zentao/bin
if [ ! -f ./zentao/bin/backup.sh ]; then
ip=`ifconfig |grep inet|head -n 1 |awk -F':' '{print $2}' |awk -F ' ' '{print $1}'`
pmsRoot=http://$ip:88/zentao/
./zentao/bin/init.sh /opt/lampp/bin/php $pmsRoot > /dev/null 2>&1
fi
# start apache, mysql.
./lampp start