Changeset 94
- Timestamp:
- 04/20/2006 19:49:11 (6 years ago)
- Location:
- confman
- Files:
-
- 2 edited
-
confman (modified) (6 diffs)
-
confmanlib.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/confman
r93 r94 33 33 . $GCONF 34 34 else 35 echo " Error:Global config file couldn't be located" >&235 echo "Global config file couldn't be located" >&2 36 36 exit 1 37 37 fi … … 51 51 . $REPO_LIBRARY 52 52 else 53 echo " Error:Couldn't source the confman shell library" >&253 echo "Couldn't source the confman shell library" >&2 54 54 exit 1 55 55 fi … … 59 59 . $REPO_DOCS 60 60 else 61 echo " Error:Couldn't source the confman shell library" >&261 echo "Couldn't source the confman shell library" >&2 62 62 exit 1 63 63 fi … … 67 67 LAYERS=`cat $RECIPE_PATH | grep "^[^#]"` 68 68 else 69 echo " Error:Couldn't read the host's recipe!" >&269 echo "Couldn't read the host's recipe!" >&2 70 70 exit 1 71 71 fi … … 171 171 local file livefile 172 172 173 if [ -z $*] ; then173 if [ -z "$*" ] ; then 174 174 print_usage 1 175 175 elif [ ! -e $1 ] ; then … … 181 181 echo "Change this file to your log message." > $msg 182 182 ${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 184 187 185 188 echo "Installation operation started." >&2 -
confman/confmanlib.sh
r91 r94 106 106 function conf_install { 107 107 local module="$1" 108 local file=`abspath $2` 108 shift 109 local file=`abspath $1` 110 shift 109 111 local moduledir="${WORK_PATH}/$module" 110 112 local livefile=`echo "$file" | sed -E "s:${WORK_PATH}/[^/]+::"` … … 135 137 $cmd 136 138 chmod o-rx ${WORK_PATH} 139 140 if [ ! -z $1 ] ; then 141 conf_install $module $* 142 fi 137 143 } 138 144 … … 160 166 livepart="${LIVE_ROOT}${file}-${layer}" 161 167 myfile="${WORK_PATH}/${layer}/${file}-${layer}" 162 if [ -f $myfile ] ; then168 if [ -f $myfile -a -f $livepart ] ; then 163 169 owner=`conf_get_prop ${myfile} owner` 164 170 group=`conf_get_prop ${myfile} group` … … 176 182 $cmd 177 183 fi 178 rm $tmpfile184 rm -f $tmpfile 179 185 } 180 186
Note: See TracChangeset
for help on using the changeset viewer.
