Ignore:
Timestamp:
Jun 25, 2010, 2:24:39 PM (15 years ago)
Author:
waue
Message:

更改檢查work_path 的路徑設定方法
檢查更新流程

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/shell/install

    r220 r224  
    44# 變數宣告
    55
    6 Work_Path="./"
    7 Work_Path_J=0
     6Work_Path=`dirname "$0"`
    87
    9 # Work Path setup
    10 echo $0 | grep '/' || Work_Path_J=1
    11 if [ "$Work_Path_J" == "0"  ]; then
    12     Work_Path=$(echo $0 | sed 's/install//')
    13 fi
    14 
    15 # Source functions
    16 if [ -f $Work_Path/install_func.sh ];then
    17   source $Work_Path/install_func.sh;
     8if [ -f $Work_Path/install_func.sh ];then
     9  Work_Path=`cd "$Work_Path"; pwd`
    1810elif [ -f $Work_Path/bin/install_func.sh ];then
    19   source $Work_Path/bin/install_func.sh;
     11  Work_Path=`cd "$Work_Path/bin"; pwd`;
    2012else
    2113  echo "Import install-function-library error !!! ";
     
    2315fi
    2416
    25 if [ -f $Work_Path/lang_linl ];then
     17#Work_Path=./
     18#Work_Path_J=0
     19# Work Path setup
     20#echo $0 | grep '/' || Work_Path_J=1
     21#if [ "$Work_Path_J" == "0"  ]; then
     22#    Work_Path=$(echo $0 | sed 's/install//')
     23#fi
     24
     25# Source functions
     26  source $Work_Path/install_func.sh;
    2627  source $Work_Path/lang_link;
    27 elif [ -f $Work_Path/bin/lang_link ];then
    28   source $Work_Path/bin/lang_link;
    29 else
    30   echo "Import Language-File error !!! ";
    31 fi
    3228### real code #####
    3329
     
    7672   
    7773    # 系統路徑鍊結
    78     ln -sf /home/nutchuser/nutchez/system/nutchez /usr/local/sbin/nutchez
     74    ln -sf /home/nutchuser/nutchez/system/nutchez /usr/local/bin/nutchez
    7975
    8076    make_client_install
Note: See TracChangeset for help on using the changeset viewer.