bulletproftlink shell
bulletproftlink shell


Server : Apache
System : Linux copper.netcy.com 2.6.32-754.27.1.el6.centos.plus.x86_64 #1 SMP Thu Jan 30 13:54:25 UTC 2020 x86_64
User : montcaro ( 581)
PHP Version : 7.4.28
Disable Function : NONE
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 


Create directory:
Current File : //scripts/rebuild_available_rpm_addons_cache
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/rebuild_available_rpm_addons_cache Copyright 2017 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;
use warnings;

use Whostmgr::Cpaddon::RPMSupport               ();
use Whostmgr::Cpaddon::RPMAddonCacheFileManager ();

exit run(@ARGV) unless caller;

sub run {
    my @args = @_;
    @args = grep { !/--verbose/ } @args;    # compatibility with deleted clear_cpaddon_ui_caches script
    _die_usage() if @args;

    my $available_rpms = Whostmgr::Cpaddon::RPMSupport::get_available_addons();

    Whostmgr::Cpaddon::RPMAddonCacheFileManager->save($available_rpms);

    return 0;
}

sub _die_usage {
    die <<EOU;
usage: $0

Rebuild the available RPM-based cPAddons cache at /var/cpanel/available_rpm_addons.cache
EOU
}

Spamworldpro BIBIL Mini