Latest
This commit is contained in:
parent
9d939c626c
commit
8db5577789
1 changed files with 6 additions and 4 deletions
|
@ -27,12 +27,14 @@ if command -v VirtualBox > /dev/null; then
|
|||
### Download extension pack
|
||||
logg info 'Downloading VirtualBox extension pack'
|
||||
curl -sSL https://download.virtualbox.org/virtualbox/$VBOX_VERSION/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack \
|
||||
-o /tmp/vbox/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack
|
||||
-o /tmp/vbox/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack || logg error 'Failed to download the VirtualBox extension pack so the extension pack installation will be skipped'
|
||||
|
||||
### Install extension pack
|
||||
if [ -f /tmp/vbox/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack ]; then
|
||||
logg info 'Installing VirtualBox extension pack'
|
||||
echo 'y' | sudo VBoxManage extpack install --replace /tmp/vbox/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack
|
||||
logg success 'Successfully installed VirtualBox extension pack'
|
||||
fi
|
||||
else
|
||||
logg info 'VirtualBox Extension pack is already installed'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue