Changeset 133


Ignore:
Timestamp:
May 28, 2010, 2:01:57 PM (14 years ago)
Author:
rock
Message:
 
File:
1 edited

Legend:

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

    r132 r133  
    2727echo -e "\n= check_systemInfo (debug) ="
    2828echo -e "\nYour system information are:"
    29 distribution=$(lsb_release -d 2>/dev/null)
    30 Linux_Distribution=$(echo $distribution | awk '{print $2}')
    31 Linux_Version=$(echo $distribution | awk '{print $3}')
     29Linux_Distribution=$(lsb_release -a 2> /dev/null | grep "Distributor ID:" | awk '{print $3}')
     30Linux_Version=$(lsb_release -a 2> /dev/null | grep "Release" | awk '{print $2}')
    3231echo $Linux_Distribution , $Linux_Version
    33 unset distribution
    3432}
    3533
     
    3836function install_packages(){
    3937# deb 系列系統
     38echo -e "\n= install_packages (debug) ="
     39echo -e "\nCheck dependent packages"
    4040if [ "$Linux_Distribution" == "Ubuntu" ] || [ "$Linux_Distribution" == "Debian" ] ;then
    4141    aptitude install -y expect ssh dialog
     
    136136else
    137137    echo -e "\nplz install PHP 5 version!"
    138 #    exit
     138    exit
    139139fi
    140140}
Note: See TracChangeset for help on using the changeset viewer.