Correct the test for the existence of the routestopped file

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-08-14 15:29:52 -07:00
parent 8ad63b53ba
commit 12f8cbae29

View File

@ -2486,7 +2486,7 @@ EOF
if ( $routestopped ) { if ( $routestopped ) {
convert_routestopped; convert_routestopped;
} elsif ( my $fn = find_file 'routestopped' ) { } elsif ( -f ( my $fn = find_file 'routestopped' ) ) {
warning_message "The routestopped file is no longer supported - use '$product update -s' to convert $fn to an equivalent 'stoppedrules' file"; warning_message "The routestopped file is no longer supported - use '$product update -s' to convert $fn to an equivalent 'stoppedrules' file";
} }