mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
Changed the behaviour of the pakfire cgi
Tried to handle some known pakfire problems (time errors and zero metas)
This commit is contained in:
@@ -136,13 +136,11 @@ END
|
||||
|
||||
} elsif ($pakfiresettings{'ACTION'} eq 'update') {
|
||||
|
||||
system("/usr/local/bin/pakfire update --force --no-colors &>/dev/null");
|
||||
system("/usr/local/bin/pakfire update --force --no-colors &>/dev/null &");
|
||||
|
||||
} elsif ($pakfiresettings{'ACTION'} eq 'upgrade') {
|
||||
my $command = "/usr/local/bin/pakfire upgrade -y --no-colors &>/dev/null";
|
||||
my $command = "/usr/local/bin/pakfire upgrade -y --no-colors &>/dev/null &";
|
||||
system("$command");
|
||||
refreshpage();
|
||||
|
||||
} elsif ($pakfiresettings{'ACTION'} eq "$Lang::tr{'save'}") {
|
||||
|
||||
if ($pakfiresettings{'AUTOUPDATE'} eq 'on') {
|
||||
@@ -198,7 +196,7 @@ if ($return) {
|
||||
</form>
|
||||
<tr><td colspan='2' align='left'><pre>
|
||||
END
|
||||
my @output = `tail -20 /var/log/pakfire.log`;
|
||||
my @output = `grep pakfire /var/log/messages | tail -20`;
|
||||
foreach (@output) {
|
||||
print "$_";
|
||||
}
|
||||
@@ -210,6 +208,7 @@ END
|
||||
&Header::closebigbox();
|
||||
&Header::closepage();
|
||||
exit;
|
||||
refreshpage();
|
||||
}
|
||||
|
||||
my $core_release = `cat /opt/pakfire/db/core/mine 2>/dev/null`;
|
||||
|
||||
Reference in New Issue
Block a user