diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:44 +0000 |
commit | 836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch) | |
tree | 1604da8f482d02effa033c94a84be42bc0c848c3 /web/server/h2o/libh2o/misc/install-perl-module.pl | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip |
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/misc/install-perl-module.pl')
-rwxr-xr-x | web/server/h2o/libh2o/misc/install-perl-module.pl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/web/server/h2o/libh2o/misc/install-perl-module.pl b/web/server/h2o/libh2o/misc/install-perl-module.pl deleted file mode 100755 index 0e0f9f4a6..000000000 --- a/web/server/h2o/libh2o/misc/install-perl-module.pl +++ /dev/null @@ -1,27 +0,0 @@ -#! /usr/bin/perl - -use strict; -use warnings; - -sub run_cmd { - my $cmd = shift; - print "$cmd\n"; - system($cmd) == 0 - or die "aborting..., command failed with $?"; -} - -sub install_module { - my $module = shift; - print "checking if $module is installed...\n"; - if (system("perl -M$module -e '' > /dev/null 2>&1") != 0) { - run_cmd("cpanm --sudo --notest $module"); - } -} - -print "checking if cpanm is installed...\n"; -if (system("which cpanm > /dev/null 2>&1") != 0) { - run_cmd("curl -L http://cpanmin.us | perl - --sudo --notest App::cpanminus"); -} - -install_module($_) - for @ARGV; |