aboutsummaryrefslogtreecommitdiffstats
path: root/bin/cron-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cron-wrapper')
-rwxr-xr-xbin/cron-wrapper6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/cron-wrapper b/bin/cron-wrapper
index 127fd8d8a..c75f0289b 100755
--- a/bin/cron-wrapper
+++ b/bin/cron-wrapper
@@ -1,8 +1,10 @@
#!/usr/bin/env perl
BEGIN { # set all the paths to the perl code
- use FindBin;
- require "$FindBin::Bin/../setenv.pl";
+ use File::Basename qw(dirname);
+ use File::Spec;
+ my $d = dirname(File::Spec->rel2abs($0));
+ require "$d/../setenv.pl";
}
exec { $ARGV[0] } @ARGV or die $!;