MSV FM

[email protected]: ~ $
Path : /scripts/
File Upload :
Current < : //scripts/regenerate_tokens

#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/regenerate_tokens               Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# [email protected]                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

package scripts::regenerate_tokens;

use cPstrict;
use Cpanel::Imports;
use Cpanel::ImagePrep         ();
use Cpanel::ImagePrep::Common ();
use Cpanel::ImagePrep::Output ();

use base 'Cpanel::HelpfulScript';
use constant _OPTIONS => ( 'force', 'no-precheck' );

=head1 NAME

scripts/regenerate_tokens

=head1 SYNOPSIS

usage: /usr/local/cpanel/scripts/regenerate_tokens [--force] [--no-precheck]

This script regenerates secret data on a virtual machine that is not
handled properly by most virtual machine templating systems. It is meant
to be used on production instances that already exist with these deficiencies.
Because of this, certain types of actions (those labeled "non-repair only" due
to their destructive nature) will be skipped, and you cannot rely on this script
to take care of all your post-snapshot cleanup needs.

To prevent such problems from occurring in the first place when creating
snapshots, see C<scripts/snapshot_prep> and C<scripts/post_snapshot>.
These scripts also cover tasks of the "non-repair only" type.

Options:

--force: Rerun all cleanups regardless of whether they have run before.

--no-precheck: Do not check whether this server is a cloud instance. This
may be needed on servers not using cloud-init.

=cut

exit __PACKAGE__->new(@ARGV)->run unless caller;

sub run {
    my ($self) = @_;

    if ( !$self->getopt('no-precheck') && !Cpanel::ImagePrep::Common::is_cloud() ) {
        logger()->info('This system does not appear to be a cloud instance.');
        return 0;
    }

    my $force = $self->getopt('force');

    my ( $table,  $cb )     = Cpanel::ImagePrep::Output->get_status_output_callback();
    my ( $status, $reason ) = Cpanel::ImagePrep::regenerate_tokens(
        output_callback => $cb,
        force           => $force,
    );
    print $table->draw . "$reason\n";
    return $status ? 0 : 1;
}

1;
Bethany
Bethany
0%

THE FINEST HOTEL NEAR LAKE KIVU

The Perfect Base For You

Required fields are followed by *





EC1A68011

About Us

Delicious Interior With The Pinch Of Everything

Bethany Investment group is Presbyterian church in Rwanda(EPR) company that manage Hotel and Guest house in Karongi (Bethany Hotel), ISANO branch in GIKONDO(Kigali), Kiyovu branch(Kigali), AMIZERO branch(Nyagatare-East) and Gisenyi Branch(Rubavu).

Accomodation

Get a Comfortable Room
Feel The Comfort

Get a comfortable room and feel our hotel’s comfort. Bethany Hotel features a variety of fully furnished rooms with extra space, Executive rooms, Deluxe rooms with a beautiful lake view and garden space, Deluxe rooms, comfort rooms, family rooms and standard rooms at your service.

Standard Single

Services

We Provide Top Class Facility
Especially For You

Beach BBQ Party

Kick back on the beach& and enjoy our berbecue from our masterchef

Breakfast

Kick back at our hotels& enjoy our breakfast from our masterchef

Conference Hall

Kick back at our hotels& enjoy our conference halls from all bethany branches

Enjoy with your partner

Honeymoon Package

80%

Get In Touch

Don’t Miss Any Update

    +

    Search your Room

    Required fields are followed by *