Changeset 94


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

Tweaked the inst function

Location:
confman
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r93 r94  
    3333        . $GCONF 
    3434else 
    35         echo "Error: Global config file couldn't be located" >&2 
     35        echo "Global config file couldn't be located" >&2 
    3636        exit 1 
    3737fi 
     
    5151        . $REPO_LIBRARY 
    5252else 
    53         echo "Error: Couldn't source the confman shell library" >&2 
     53        echo "Couldn't source the confman shell library" >&2 
    5454        exit 1 
    5555fi 
     
    5959        . $REPO_DOCS 
    6060else 
    61         echo "Error: Couldn't source the confman shell library" >&2 
     61        echo "Couldn't source the confman shell library" >&2 
    6262        exit 1 
    6363fi 
     
    6767        LAYERS=`cat $RECIPE_PATH | grep "^[^#]"` 
    6868else 
    69         echo "Error: Couldn't read the host's recipe!" >&2 
     69        echo "Couldn't read the host's recipe!" >&2 
    7070        exit 1 
    7171fi 
     
    171171        local file livefile 
    172172 
    173         if [ -z $* ] ; then 
     173        if [ -z "$*" ] ; then 
    174174                print_usage 1 
    175175        elif [ ! -e $1 ] ; then 
     
    181181                echo "Change this file to your log message." > $msg 
    182182                ${EDITOR} $msg 
    183                 update || conf_cleanexit 
     183 
     184                # If there's a failure, the user will update. Don't need to 
     185                # hide this from them. 
     186                # update || conf_cleanexit 
    184187 
    185188                echo "Installation operation started." >&2 
  • 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.