Changeset 94 for confman/confmanlib.sh


Ignore:
Timestamp:
04/20/2006 19:49:11 (6 years ago)
Author:
ccowart
Message:

Tweaked the inst function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confmanlib.sh

    r91 r94  
    106106function conf_install { 
    107107  local module="$1" 
    108   local file=`abspath $2` 
     108  shift 
     109  local file=`abspath $1` 
     110  shift 
    109111  local moduledir="${WORK_PATH}/$module" 
    110112  local livefile=`echo "$file" | sed -E "s:${WORK_PATH}/[^/]+::"` 
     
    135137  $cmd 
    136138  chmod o-rx ${WORK_PATH} 
     139 
     140  if [ ! -z $1 ] ; then 
     141          conf_install $module $* 
     142  fi 
    137143} 
    138144 
     
    160166          livepart="${LIVE_ROOT}${file}-${layer}" 
    161167          myfile="${WORK_PATH}/${layer}/${file}-${layer}" 
    162           if [ -f $myfile ] ; then 
     168          if [ -f $myfile -a -f $livepart ] ; then 
    163169                  owner=`conf_get_prop ${myfile} owner` 
    164170                  group=`conf_get_prop ${myfile} group` 
     
    176182        $cmd 
    177183  fi 
    178   rm $tmpfile 
     184  rm -f $tmpfile 
    179185} 
    180186 
Note: See TracChangeset for help on using the changeset viewer.