mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
⚡ Also support upgrade packages
This commit is contained in:
parent
dc485086d1
commit
27ebae917d
1 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue