Changeset 235 for nutchez-0.2/src


Ignore:
Timestamp:
Jun 28, 2010, 4:41:38 PM (14 years ago)
Author:
shunfa
Message:

新增套件驗證, 避免重複下載

File:
1 edited

Legend:

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

    r232 r235  
    285285  chmod 755 /opt/nutchez
    286286  debug_info "$scp_packages_d3"
    287   su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/home/nutchuser/nutchez/source/NutchezForClientOf_$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source"
    288 
     287  if [ ! -e "NutchezForClientOf_$Master_IP_Address.tar.gz" ];then
     288      su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/home/nutchuser/nutchez/source/NutchezForClientOf_$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source"
     289  fi
    289290}
    290291
Note: See TracChangeset for help on using the changeset viewer.