Changeset 227 for nutchez-0.2/src


Ignore:
Timestamp:
Jun 25, 2010, 3:18:52 PM (14 years ago)
Author:
waue
Message:

修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/shell/install_func.sh

    r224 r227  
    1010Admin_email=nutchuser@nutch
    1111# Work_Path=(define on install)
    12 Install_Dir=$Work_Path/../
     12Install_Dir=`cd "$Work_Path/../"; pwd`
    1313MasterIP_Address=`/sbin/ifconfig eth0 | grep 'inet addr' |  sed 's/^.*addr://g' | sed 's/Bcast.*$//g' | sed 's/ .*// '`
    1414net_MacAddr=`/sbin/ifconfig eth0 | grep 'HW' | sed 's/^.*HWaddr //g'`
     
    8686  local pac_name=nutchez-0.2pack-current.tar.gz
    8787  if [ ! -d "$Install_Dir/package" ];then
    88     mkdir ./package
     88    mkdir $Install_Dir/package
    8989  fi
    9090  if [ ! -e "$Install_Dir/package/$pac_name" ];then
    9191    wget "http://nutchez.googlecode.com/files/$pac_name";
    9292    if [ $? -eq 0 ];then
    93   mv $pac_name ./package;
     93  mv $pac_name $Install_Dir/package;
    9494  echo "movied";
    9595    else
Note: See TracChangeset for help on using the changeset viewer.