Also support upgrade packages

This commit is contained in:
Benoît de Biolley 2025-07-14 11:05:42 +02:00
parent dc485086d1
commit 27ebae917d
No known key found for this signature in database
GPG key ID: 0289E94552874227

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',