mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Use safe-upgrade with aptitude
This commit is contained in:
@@ -30,7 +30,8 @@ if ($in{'update'}) {
|
||||
|
||||
if ($in{'mode'}) {
|
||||
$opts = $in{'sim'} ? "-s -y -f" : "-y -f";
|
||||
$cmd = $in{'mode'} == 2 ? "dist-upgrade" : "upgrade";
|
||||
$cmd = $in{'mode'} == 2 ? "dist-upgrade" :
|
||||
$apt_get_command =~ /aptitude/ ? "safe-upgrade" : "upgrade";
|
||||
print "<b>",&text($in{'sim'} ? 'apt_upgradedescsim' : 'apt_upgradedesc', "<tt>$apt_get_command $opts $cmd</tt>"),"</b><p>\n";
|
||||
print "<pre>";
|
||||
&additional_log("exec", undef, "$apt_get_command $opts $cmd");
|
||||
|
||||
Reference in New Issue
Block a user