Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 220
#!/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 <