/[smeserver]/rpms/e-smith-backup/sme9/e-smith-backup-2.4.0.bz9089.Test_Backup_MountPoint.patch
ViewVC logotype

Annotation of /rpms/e-smith-backup/sme9/e-smith-backup-2.4.0.bz9089.Test_Backup_MountPoint.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Oct 12 20:27:46 2015 UTC (9 years, 1 month ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-backup-2_4_0-44_el6_sme, e-smith-backup-2_4_0-45_el6_sme, e-smith-backup-2_4_0-46_el6_sme, HEAD
* Mon Oct 12 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-44.sme
- The mountpoint is tested before to do the console backup
- added e-smith-backup-2.4.0.bz9089.Test_Backup_MountPoint.patch

1 stephdl 1.1 diff -Nur e-smith-backup-2.4.0.bz9089.old/root/usr/share/perl5/vendor_perl/esmith/console/perform_backup.pm e-smith-backup-2.4.0.bz9089.new/root/usr/share/perl5/vendor_perl/esmith/console/perform_backup.pm
2     --- e-smith-backup-2.4.0.bz9089.old/root/usr/share/perl5/vendor_perl/esmith/console/perform_backup.pm 2015-10-10 09:10:50.150741515 +0200
3     +++ e-smith-backup-2.4.0.bz9089.new/root/usr/share/perl5/vendor_perl/esmith/console/perform_backup.pm 2015-10-10 09:12:18.621135152 +0200
4     @@ -207,7 +207,17 @@
5     my %args_hash = ( @args );
6     $device = $args_hash{$choice};
7     }
8     - system("/bin/mount", "$device", "/mnt/bootstrap-console-backup");
9     + unless ( system("/bin/mount", "$device", "/mnt/bootstrap-console-backup") == '0' )
10     + {
11     + ($rc, $choice) = $console->message_page
12     + (
13     + title => gettext("No mountable backup medium"),
14     + right => gettext("Back"),
15     + text =>
16     + gettext("Unable to mount removable media, please check the file system format (default : Vfat,Ext2,Ext3,Ext4)"),
17     + );
18     + goto INITIATE_BACKUP;
19     + }
20    
21     use File::stat;
22     my $st = stat("/mnt/bootstrap-console-backup/smeserver.tgz");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed