Also support upgrade packages

This commit is contained in:
Benoît de Biolley
2026-08-11 18:08:40 +02:00
parent 41cbd7192c
commit e6a838ad50
+4
View File
@@ -58,6 +58,10 @@ class UpdatePackage
$commandAll = 'pacman -Syu --noconfirm';
$commandInstall = 'pacman -S --noconfirm '.$sanitizedPackage;
break;
case 'apk':
$commandAll = 'apk update && apk upgrade';
$commandInstall = 'apk upgrade '.$package;
break;
default:
return [
'error' => 'OS not supported',