We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running from outside the dir whre dhsnapshot.conf is i get:
Can't locate dhsnapshot.conf in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./dhsnapshot/dhsnapshot.pl line 9.
applying this patch makes it work:
diff --git a/dhsnapshot.pl b/dhsnapshot.pl index 1d3ebc3..53a36af 100755 --- a/dhsnapshot.pl +++ b/dhsnapshot.pl @@ -6,7 +6,11 @@ our %conf; $conf{'basedir'} = get_basedir(); $conf{'emptydir'} = "$conf{'basedir'}/__emptydir/"; -require 'dhsnapshot.conf'; +use File::Basename; +use Cwd 'abs_path'; +my $bd = dirname(abs_path($0)); +my $conf_file = "$bd/dhsnapshot.conf"; +require $conf_file; my $lowest_interval = 'daily'; my %rotation;
The text was updated successfully, but these errors were encountered:
Update dhsnapshot.pl
44c6a28
fixes carloslima#3
Successfully merging a pull request may close this issue.
When running from outside the dir whre dhsnapshot.conf is i get:
applying this patch makes it work:
The text was updated successfully, but these errors were encountered: