Skip to content

Commit

Permalink
Check for error on unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed May 28, 2017
1 parent e5ca89a commit bc1ef91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Virtualmin/Config/Plugin/Apache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ sub actions {
}

# Force re-check of installed Apache modules
unlink($apache::site_file);
unlink($apache::site_file) or
$log->error("Failed to unlink $apache::site_file");
$self->done(1); # OK!
};
if ($@) {
Expand Down

0 comments on commit bc1ef91

Please sign in to comment.