Kenneth Porter
2013-09-18 12:02:01 UTC
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";
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";