Changeset 2032


Ignore:
Timestamp:
Oct 6, 2008, 3:36:41 PM (11 years ago)
Author:
bruno
Message:

Force LVM to false and remove i-want-my-lvm if analyze-my-lvm fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.7/mindi/mindi

    r2028 r2032  
    18741874        cp -f $bigdir/tmp/mountlist.txt $MINDI_TMP/. 2>> $LOGFILE
    18751875    fi
    1876     [ $LVM != "false" ] && $MINDI_LIB/analyze-my-lvm > $bigdir/tmp/i-want-my-lvm || LVM="false"
     1876    if [ $LVM != "false" ]; then
     1877        $MINDI_LIB/analyze-my-lvm > $bigdir/tmp/i-want-my-lvm
     1878        if [ "$?" -ne "0" ]; then
     1879            LVM="false"
     1880            rm -f $bigdir/tmp/i-want-my-lvm
     1881        fi
     1882    fi
    18771883    cat $bigdir/tmp/mountlist.txt >> $LOGFILE
    18781884    echo -en "$FILES_IN_FILELIST" > $bigdir/FILES-IN-FILELIST 2> /dev/null
Note: See TracChangeset for help on using the changeset viewer.