File manager - Edit - /usr/local/cpanel/install/DigestAuthInit.pm
Back
package Install::DigestAuthInit; ## no critic(RequireFilenameMatchesPackage) # cpanel - install/DigestAuthInit.pm 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 use strict; use warnings; use base qw( Cpanel::Task ); use Cpanel::Auth::Digest::DB (); use Cpanel::FileUtils::Chown (); our $VERSION = '1.0'; =head1 DESCRIPTION create file /etc/digestshadow if missing =over 1 =item Type: Fresh Install, Sanity =item Frequency: always =item EOL: never =back =cut exit __PACKAGE__->runtask() unless caller; sub new { my $proto = shift; my $self = $proto->SUPER::new; $self->set_internal_name('DigestAuthInit'); return $self; } sub perform { my $self = shift; Cpanel::FileUtils::Chown::check_and_fix_owner_and_permissions_for( 'uid' => 0, 'gid' => 0, 'octal_perms' => 0640, 'path' => $Cpanel::Auth::Digest::DB::file, 'create' => 1, ); return 1; } 1; __END__
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings