mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Instead of passing a param to check_reboot_required that causes it to return 0, just don't call it
This commit is contained in:
@@ -677,13 +677,10 @@ return $mode eq 'updates' || $mode eq 'security' ?
|
||||
&list_possible_updates($nocache) : &list_available($nocache);
|
||||
}
|
||||
|
||||
# check_reboot_required([no-collect])
|
||||
# check_reboot_required()
|
||||
# Returns 1 if the package system thinks a reboot is needed
|
||||
# If the no-collect flag is set, then check won't happen
|
||||
sub check_reboot_required
|
||||
{
|
||||
my ($no_collect) = @_;
|
||||
return 0 if ($no_collect);
|
||||
if ($gconfig{'os_type'} eq 'debian-linux') {
|
||||
if (-e "/var/run/reboot-required") {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user