I'm trying to build/package an RPM on a system on which BackupPC is running
and configure.pl running as a mortal is seeing the unreadable
/etc/BackupPC/config.pl and failing.
If --batch is specified and --config-path is not specified, the
configure.pl script should NOT attempt to use the configuration at
/etc/BackupPC as a basis for upgrade.
I think something like this should work:
--- configure.pl.original 2013-09-18 05:00:54.357675245 -0700
+++ configure.pl 2013-09-18 04:59:03.142086920 -0700
@@ -159,6 +159,7 @@
#
my $ConfigPath = "";
my $ConfigFileOK = 1;
+$ConfigFileOK = 0 if ( $opts{batch} && !defined($opts{'config-path'}) );
while ( 1 ) {
if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) {
$ConfigPath = "/etc/BackupPC/config.pl";
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-devel mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/