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
|
### Download extension pack
|
||||||
logg info 'Downloading VirtualBox 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 \
|
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
|
### Install extension pack
|
||||||
logg info 'Installing VirtualBox extension pack'
|
if [ -f /tmp/vbox/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack ]; then
|
||||||
echo 'y' | sudo VBoxManage extpack install --replace /tmp/vbox/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VERSION.vbox-extpack
|
logg info 'Installing VirtualBox extension pack'
|
||||||
logg success 'Successfully installed 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
|
else
|
||||||
logg info 'VirtualBox Extension pack is already installed'
|
logg info 'VirtualBox Extension pack is already installed'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue