%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/cluster-software/ |
Upload File : |
#!/usr/bin/perl # refresh.cgi # Reload the list of packages from all managed hosts require './cluster-software-lib.pl'; &ReadParse(); &ui_print_header(undef, $text{'refresh_title'}, ""); $| = 1; # Work out which hosts to refresh @hosts = &list_software_hosts(); @servers = &list_servers(); if (defined($in{'id'})) { @hosts = grep { $_->{'id'} == $in{'id'} } @hosts; local ($s) = grep { $_->{'id'} == $hosts[0]->{'id'} } @servers; print "<b>",&text('refresh_header5', undef, &server_name($s)),"</b><p>\n"; } else { @hosts = &create_on_parse("refresh_header"); } # Do the refresh @results = &refresh_packages(\@hosts); # Show the user $p = 0; foreach $h (@hosts) { local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers; local $d = $s->{'desc'} || $s->{'realhost'} || $s->{'host'}; local $rv = $results[$p]; if ($rv && ref($rv)) { @added = @{$rv->[0]}; @old = @{$rv->[1]}; if (@added && @old) { print &text('refresh_1', $d, join(" ", @added),join(" ", @old)),"<br>\n"; } elsif (@added) { print &text('refresh_2', $d, join(" ", @added)),"<br>\n"; } elsif (@old) { print &text('refresh_3', $d, join(" ", @old)),"<br>\n"; } else { print &text('refresh_4', $d),"<br>\n"; } } elsif ($rv) { print &text('refresh_failed', $d, $rv),"<br>\n"; } else { print &text('refresh_del', $h->{'id'}),"<br>\n"; } $p++; } print "<p><b>$text{'refresh_done'}</b><p>\n"; &remote_finished(); if (defined($in{'id'})) { &ui_print_footer("edit_host.cgi?id=$in{'id'}", $text{'host_return'}, "", $text{'index_return'}); } else { &ui_print_footer("", $text{'index_return'}); }