Changeset 101


Ignore:
Timestamp:
Jul 10, 2009, 5:20:32 PM (15 years ago)
Author:
waue
Message:

fix several bugs

Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/bin/nutchez

    r100 r101  
    1616
    1717. /opt/nutchez/nutch/bin/nutchez-func.sh
     18
     19cd ~
    1820
    1921init_nutchez
  • nutchez-0.1/bin/nutchez-func.sh

    r100 r101  
    7979      mv ~/.nutchez/search ~/.nutchez/search-$DATE
    8080      $DIALOG --msgbox "上次搜尋的結果改放到 ~/.nutchez/search-$DATE " 0 0
    81       rm -f /tmp/search
     81  #    rm -f /tmp/search
    8282  #    rm -rf ~/.nutchez/search/*
    8383    fi
     
    8888    sed -i -e "4s/<value>[a-zA-Z0-9]*</<value>$ROBOT</" ~/.nutchez/conf/nutch-site.xml
    8989  fi
    90 
    9190}
    9291
     
    10099      mkdir ~/.nutchez/search
    101100    fi
     101
     102   # setup search dir
     103    cd ~
     104    HOMEDIR=`pwd`/.nutchez/search
     105    sed -i -e "8s|<value>[a-zA-Z0-9/]*<|<value>$HOMEDIR<|" ~/.nutchez/tomcat/webapps/ROOT/WEB-INF/classes/nutch-site.xml
     106
    102107  fi
    103108  # change explorer port
     
    211216  echo_dialog_v "8. start_tomcat "
    212217  echo_dialog_v "/opt/nutchez/nutch/tomcat/bin/startup.sh"
    213   if [ -e /tmp/search ];then
    214     rm -rf /tmp/search
    215   fi
    216   ln -sf ~/.nutchez/search/ /tmp/
     218  #if [ -e /tmp/search ];then
     219  #  rm -rf /tmp/search
     220  #fi
     221  #ln -sf ~/.nutchez/search/ /tmp/
    217222
    218223  pid_tc=$(ps axw -eo pid,command |\
Note: See TracChangeset for help on using the changeset viewer.