Browse Source

* fixed minor issues on sitebuilder.sh (typos)

git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@53 471cc25b-571d-0410-8e29-1f4f9b506cef
master
Nagy Karoly Gabriel 17 years ago
parent
commit
c94db14da3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      99-final/sitebuilder.sh

+ 2
- 2
99-final/sitebuilder.sh

@ -31,8 +31,8 @@ if [ "$SITE_ROOT" ]; then
sed -e "s,$db_to_replace,$SITE_DB,g" -i $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php
ip_to_replace=`grep '^\$host' $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php | awk {'print $3'} | sed s,\",,g`
sed -e "s,$ip_to_replace,$DB_IP,g" -i $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php
port_to_replace=`grep '^\$dbname' $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php | awk {'print $3'} | sed s,\",,g`
sed -e "s,$ip_to_replace,$DB_IP,g" -i $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php
port_to_replace=`grep '^\$port' $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php | awk {'print $3'} | sed s,\",,g`
sed -e "s,$port_to_replace,$DB_PORT,g" -i $DOC_ROOT/$SITE_ROOT/pages/dbconnection.php
else
exit 1;
fi

Loading…
Cancel
Save