/usr/lib/amanda/rest-server/bin/app-dancer2.pl is in amanda-common 1:3.5.1-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #! /usr/bin/perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN {
opendir(DIR, "$FindBin::Bin/../lib/Amanda") or die $!;
while (my $file = readdir(DIR)) {
next if $file eq '.';
next if $file eq '..';
if (-e "$FindBin::Bin/../lib/Amanda/$file/Rest.pm") {
my $module = "Amanda::${file}::Rest";
eval "require $module;";
print $@ if $@;
}
}
}
use Amanda::Rest;
use Dancer2;
dance;
|