#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/disable_prelink Copyright 2022 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
package scripts::disable_prelink;
use parent qw( Cpanel::HelpfulScript );
use strict;
use warnings;
use Try::Tiny;
use Cpanel::Autodie ();
use Cpanel::FileUtils::Write ();
use Cpanel::LoadFile ();
use Cpanel::Pkgr ();
use Cpanel::OS ();
our $cron_prelink_script = '/etc/cron.daily/prelink';
my $exit = 0;
$exit = __PACKAGE__->new(@ARGV)->run() unless caller();
=encoding utf-8
=head1 NAME
disable_prelink
=head1 USAGE
scripts/disable_prelink [--help]
=head1 DESCRIPTION
This script disables RPM prelinking. It is run nightly so we are sure it does not re-appear.
If you want to disable this behavior, you can touch /var/cpanel/dont_remove_prelink.
B