msimerson / sentry

Bruteforce attack blocker (ssh, FTP, SMTP, and more)
64 stars 20 forks source link

shebang should be updated when sentry installed #3

Closed msimerson closed 9 years ago

msimerson commented 9 years ago

Previous, the shebang line was hard coded:

#!/usr/bin/perl

And then I updated it because /usr/bin/perl doesn't always work (perl5, /opt/local, /usr/local, etc...). So I switched it to:

#!/usr/bin/env perl

Which should, work more often. But not necessarily so. See this and this.

Solution

When sentry is installed, find the path to perl (using ENV, following symlinks, etc..) and update the shebang line with the fully qualified path to perl.

msimerson commented 9 years ago

See also this SO question

msimerson commented 9 years ago

fixed in 1.0.3 (updates shebang line with which perl