mirror of
https://github.com/webmin/webmin.git
synced 2026-09-21 04:50:40 +01:00
Fix to also set UCF_FORCE_CONFFOLD variable
https://github.com/virtualmin/virtualmin-gpl/issues/612
This commit is contained in:
@@ -20,6 +20,7 @@ local $force = !$_[2];
|
||||
local (@rv, @newpacks);
|
||||
|
||||
# Build the command to run
|
||||
$ENV{'UCF_FORCE_CONFFOLD'} = 'YES';
|
||||
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
|
||||
local $uicmd = "$apt_get_command -y ".($force ? " -f" : "")." install $update";
|
||||
$update = join(" ", map { quotemeta($_) } split(/\s+/, $update));
|
||||
@@ -75,6 +76,7 @@ return @rv;
|
||||
sub update_system_operations
|
||||
{
|
||||
my ($packages) = @_;
|
||||
$ENV{'UCF_FORCE_CONFFOLD'} = 'YES';
|
||||
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
|
||||
my $cmd = "apt-get -s install ".
|
||||
join(" ", map { quotemeta($_) } split(/\s+/, $packages)).
|
||||
|
||||
@@ -202,6 +202,7 @@ local $args = ($in->{'depends'} ? " --force-depends" : "").
|
||||
($in->{'overwrite'} ? " --force-overwrite" : "").
|
||||
($in->{'downgrade'} ? " --force-downgrade" : "");
|
||||
local $qm = quotemeta($_[0]);
|
||||
$ENV{'UCF_FORCE_CONFFOLD'} = 'YES';
|
||||
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
|
||||
local $out = &backquote_logged("dpkg --install $args $qm 2>&1 </dev/null");
|
||||
if ($?) {
|
||||
|
||||
Reference in New Issue
Block a user