- Timestamp:
- May 5, 2013, 4:24:53 AM (12 years ago)
- Location:
- devel/mr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mr/lib/MondoRescue/Base.pm
r2667 r3108 17 17 use POSIX qw(strftime); 18 18 use lib qw (lib); 19 use Digest::MD5; 19 20 use ProjectBuilder::Base; 20 21 use ProjectBuilder::Conf; … … 80 81 open(MD5,"$etcdir/$pbproj.conf.dist.md5") || die "Unable to read mandatory $etcdir/$pbproj.conf.dist.md5: $!"; 81 82 my $omd5 = <MD5>; 82 cho p($omd5);83 chomp($omd5); 83 84 close(MD5); 84 85 open(CONF,"$etcdir/$pbproj.conf.dist") || die "Unable to read mandatory $etcdir/$pbproj.conf.dist: $!"; … … 86 87 binmode(CONF); 87 88 $md5->addfile(CONF); 88 die "Invalid MD5 found sum for $etcdir/$pbproj.conf.dist: $md5->hexdigest" if ($omd5 ne $md5->hexdigest); 89 my $digest = $md5->hexdigest; 90 die "Invalid MD5 sum found for $etcdir/$pbproj.conf.dist: $digest" if ($omd5 ne $digest); 89 91 close(CONF); 90 92 -
devel/mr/lib/MondoRescue/LVM.pm
r2670 r3108 217 217 # Analyze the existing volume groups 218 218 #open(LVM,$lvmcmd."vgdisplay -c |") || mr_exit(-1,"Unable to execute ".$lvmcmd."vgdisplay -c"); 219 open(LVM,$lvmcmd."vgs --noheadings --nosuffix --units m --separator : | -o vg_all") || mr_exit(-1,"Unable to execute ".$lvmcmd."vgs");219 open(LVM,$lvmcmd."vgs --noheadings --nosuffix --units m --separator : -o vg_all |") || mr_exit(-1,"Unable to execute ".$lvmcmd."vgs"); 220 220 while (<LVM>) { 221 221 -
devel/mr/sbin/mranalyze-lvm
r2648 r3108 6 6 # $Id$ 7 7 # 8 # Copyright B. Cornec 2008 8 # Copyright B. Cornec 2008-2012 9 9 # Provided under the GPL v2 10 10
Note:
See TracChangeset
for help on using the changeset viewer.