mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
--force-yes is deprecated, and apparently dangerour
This commit is contained in:
@@ -19,9 +19,7 @@ local (@rv, @newpacks);
|
||||
|
||||
# Build the command to run
|
||||
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
|
||||
local $cmd = $apt_get_command eq "apt-get" ?
|
||||
"$apt_get_command -y ".($force ? " --force-yes -f" : "")." install $update" :
|
||||
"$apt_get_command -y".($force ? " -f" : "")." install $update";
|
||||
local $cmd = "$apt_get_command -y ".($force ? " -f" : "")." install $update";
|
||||
$update = join(" ", map { quotemeta($_) } split(/\s+/, $update));
|
||||
print "<b>",&text('apt_install', "<tt>$cmd</tt>"),"</b><p>\n";
|
||||
print "<pre>";
|
||||
|
||||
Reference in New Issue
Block a user