Skip to content
Snippets Groups Projects
Commit f1f7e783 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

pridano nacitani adresare lib a modulu WardenClient.pm pomoci promenne __FILE__

parent 44c48635
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,11 @@ use warnings; ...@@ -9,9 +9,11 @@ use warnings;
use Switch; use Switch;
use DateTime; use DateTime;
use File::Basename;
my $warden_path = '/opt/warden-client'; my $bin = File::Basename::dirname(__FILE__);
require $warden_path . '/lib/WardenClient.pm'; use lib "$bin/../lib";
use WardenClient;
my $service = "test"; my $service = "test";
# service is needed in authorization process of the client, # service is needed in authorization process of the client,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment