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/rebuild_api_readonly_cache |
#!/usr/local/cpanel/3rdparty/bin/perl
# Copyright 2026 WebPros International, LLC
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.
package scripts::rebuild_api_readonly_cache;
use strict;
use warnings;
use Getopt::Long qw(:config auto_help);
use Pod::Usage;
use Cpanel::API::ReadOnlyMap::PluginCache ();
=head1 NAME
scripts/rebuild_api_readonly_cache - Rebuild the plugin read-only API overlay cache
=head1 SYNOPSIS
scripts/rebuild_api_readonly_cache [--quiet]
Regenerates C</var/cpanel/caches/api_readonly_plugins.cache> wholesale from
every installed plugin's C</var/cpanel/plugins/*/api-readonly.uapi.yaml>
manifest. This is the read-only classification overlay that
L<Cpanel::API::ReadOnly> consults (alongside the compiled core map) to enforce
read-only API token scope for plugin UAPI methods.
Invoked from each plugin's install/upgrade (C<pkg.postinst>) and removal
(C<pkg.postrm>) scriptlet, and once per cPanel update via the
C<install/RebuildApiReadonlyCache.pm> task. Safe to run any time (idempotent).
Must run as root.
The per-update task closes a deployment-ordering gap: a plugin installed before
this script existed ran a guarded scriptlet that no-op'd, so its read-only
methods would otherwise stay denied (fail-closed) until a reinstall. The update
task rebuilds from all installed manifests so they register on the next update.
The rebuild is fail-closed: a malformed or unreadable plugin manifest is skipped
with a warning, never aborting the rebuild, and a manifest entry that collides
with a core classification is ignored (core-wins). The overlay only ever adds
read-only allowances; it can never widen write access.
=head1 OPTIONS
=over 4
=item B<--quiet>
Suppress the summary line on success.
=item B<--help>
Show this help and exit.
=back
=cut
__PACKAGE__->script(@ARGV) if !caller;
sub script {
my ( $pkg, @argv ) = @_;
local @ARGV = @argv;
my $quiet = 0;
GetOptions( 'quiet' => \$quiet ) or pod2usage(2);
if ( $> != 0 ) {
die "rebuild_api_readonly_cache must run as root\n";
}
my $overlay = Cpanel::API::ReadOnlyMap::PluginCache->rebuild();
if ( !$quiet ) {
printf "Wrote %s: %d plugin read-only entries\n",
$Cpanel::API::ReadOnlyMap::PluginCache::CACHE_PATH,
scalar keys %$overlay;
}
return 0;
}
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…