CHips L MINI SHELL

CHips L pro

Current Path : /proc/3/task/3/root/proc/3/root/scripts/
Upload File :
Current File : //proc/3/task/3/root/proc/3/root/scripts/distro_changed_hook

#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/distro_changed_hook             Copyright 2020 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::distro_changed_hook;

use strict;
use warnings;

## no critic qw(Proto)
use experimental 'signatures';

=encoding utf-8

=head1 NAME

F<distro_changed_hook>

=head1 USAGE

    distro_changed_hook [--help]

=head1 DESCRIPTION

This is executed by RPM triggers in the cpanel-trigger-os-release
package when one of the supported OS release packages is changed.

=cut

#----------------------------------------------------------------------

use parent qw( Cpanel::HelpfulScript );
use constant _OPTIONS => ();

use Cpanel::GenSysInfo ();

exit( __PACKAGE__->new(@ARGV)->run() ) if !caller;

#----------------------------------------------------------------------

sub run ($self) {
    Cpanel::GenSysInfo::rebuild();
    return 0;    # exit() value
}

1;

Copyright 2K16 - 2K18 Indonesian Hacker Rulez