1
0
mirror of synced 2026-05-01 14:16:09 +00:00

Abort if the generated configuration file already exists.

(Closes: #499475)
This commit is contained in:
Steve Kemp
2008-10-13 19:18:05 +01:00
parent 290a30b1b1
commit 455c16cefe
2 changed files with 15 additions and 0 deletions

View File

@@ -1802,6 +1802,18 @@ EOF
exit 127;
}
#
# Already present?
#
my $cfg =
$CONFIG{'output'} . "/" . $CONFIG{'hostname'} . $CONFIG{'extension'};
if ( -e $cfg )
{
print "Configuration file already exists; $cfg\n";
print "Aborting\n";
exit 127;
}
}