Design 161 – Chaturbate BIO profile already created
Elevate your image as a model with a space designed to provoke, attract, and turn glances into desire. A striking profile not only conveys style and confidence but also foreshadows…
%PDF- %PDF-
| Direktori : /scripts/ |
| Current File : //scripts/check_plugin_pkgs |
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/check_plugin_pkgs 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::check_plugin_pkgs;
use cPstrict;
use parent qw( Cpanel::HelpfulScript );
use Cpanel::OS ();
use Cpanel::Plugins ();
=encoding utf-8
=head1 NAME
scripts::check_plugin_pkgs
=head1 SYNOPSIS
check_plugin_pkgs [ --pkg <pkg> --pkg <pkg> | help ]
NOTE: The `pkg` argument can be passed 1 or more times
=head1 DESCRIPTION
This script verifies the integrity of installed plugin packages. If it finds an
altered package, the script will replace it with an unaltered version. If the
package is not installed, the script will install it.
=cut
sub _OPTIONS {
return qw( pkg=s@ );
}
exit( __PACKAGE__->new(@ARGV)->script() // 0 ) unless caller();
sub script ($self) {
if ( !Cpanel::OS::supports_plugins_repo() ) {
$self->say( "cPanel plugins are not supported for your current distribution: " . Cpanel::OS::display_name() );
return;
}
$self->ensure_root();
my $pkgs = $self->getopt('pkg') // die "Please specify at least one package to check with --pkg.\n" . $self->help();
my $ok = 1;
foreach my $pkg (@$pkgs) {
$self->say("* Checking package ‘$pkg’");
my $check = eval { $self->check_pkg($pkg); 1 } // 0;
my $error = $@;
if ($check) {
$self->say("Package ‘$pkg’ is OK.");
}
else {
$self->say( "Issue detected with package ‘$pkg’: ", $error );
}
$self->say('');
$ok &= $check;
}
return !$ok;
}
sub check_pkg ( $self, $pkg ) {
if ( Cpanel::Plugins::is_plugin_installed($pkg) ) {
my $altered = Cpanel::Plugins::get_altered_files($pkg);
if (@$altered) {
$self->say( join( "\n", "Altered files found in package ‘$pkg’, attempting to reinstall …", map { " $_" } @$altered ), "\n" );
# Do not use reinstall_plugins here since we need this to work for ubuntu too
# and reinstall_plugins is not implemented on ubuntu
Cpanel::Plugins::uninstall_and_install_plugins( [$pkg], [$pkg] );
}
}
else {
$self->say("Package '$pkg' is not installed, attempting to install it …\n");
Cpanel::Plugins::install_plugins($pkg);
}
return;
}
1;
Elevate your image as a model with a space designed to provoke, attract, and turn glances into desire. A striking profile not only conveys style and confidence but also foreshadows…
Elevate your image as a model with a clean, polished, and sophisticated profile. A harmonious design conveys confidence, professionalism, and a more exclusive experience for your followers. Integrate your Chaturbate…
Because your content deserves a good frame: this design enhances your profile, improves navigation, and makes it clear that you're a model who takes her work seriously. WATCH DEMO Instructions…
Elevate your image as a model: a well-designed profile conveys seriousness, style, and a more polished experience for your followers. WATCH DEMO Instructions with images are available in this article.…
Designed to attract, retain, and build loyalty: a functional and sexy design that complements your show and strengthens your presence on Chaturbate. WATCH DEMO Instructions with images are available in…
Let your profile speak for you: this design highlights your personality and creates an immediate connection with those who come to get to know you. WATCH DEMO Instructions with images…
A profile that sells without saying a word: a sensual style and visual order that communicates value, exclusivity, and professionalism. WATCH DEMO Instructions with images are available in this article.…
Strategic design for ambitious models: improve first impressions, organize your content, and boost interaction with your viewers. WATCH DEMO Instructions with images are available in this article. The code below…
Visual impact that attracts more attention: an aesthetic designed to grab attention and ensure your profile doesn't go unnoticed. WATCH DEMO Instructions with images are available in this article. The…
Your space, your identity: this design helps you show who you are, what you offer, and why it's worth staying in your room. WATCH DEMO Instructions with images are available…