]> git.proxmox.com Git - pmg-api.git/blob - bin/pmgtunnel
rename safe_browsing_score to clamav_heuristic_score
[pmg-api.git] / bin / pmgtunnel
1 #!/usr/bin/perl -T
2
3 $ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin';
4
5 delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
6
7 use strict;
8 use warnings;
9
10 use PVE::SafeSyslog;
11 use PMG::Service::pmgtunnel;
12
13 $SIG{'__WARN__'} = sub {
14 my $err = $@;
15 my $t = $_[0];
16 chomp $t;
17 print STDERR "$t\n";
18 syslog('warning', "%s", $t);
19 $@ = $err;
20 };
21
22 PMG::Service::pmgtunnel->run_cli_handler();