Changeset 236


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

新增套件驗證

File:
1 edited

Legend:

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

    r235 r236  
    285285  chmod 755 /opt/nutchez
    286286  debug_info "$scp_packages_d3"
    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"
     287  if [ -e "NutchezForClientOf_$Master_IP_Address.tar.gz" ];then
     288    mv NutchezForClientOf_$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source
     289  fi
     290  if [ ! -e "/home/nutchuser/nutchez/source/NutchezForClientOf_$Master_IP_Address.tar.gz" ];then
     291    su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/home/nutchuser/nutchez/source/NutchezForClientOf_$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source"
    289292  fi
    290293}
Note: See TracChangeset for help on using the changeset viewer.