Land #479, import libvirt box

This commit is contained in:
Jeffrey Martin 2020-10-26 15:43:37 -05:00
commit e34db4f36e
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ for provider in $providers; do
echo "NOTE: If you are having issues, try starting over by doing 'vagrant destroy' and then 'vagrant up'."
else
if [ -z $box_import ]; then
if [ $provider = "qemu" ]; then
provider="libvirt"
fi
if vagrant box add $packer_build_path/"$os_full"_"$provider"_"$box_version".box --name rapid7/metasploitable3-$os_short; then
echo "Box successfully added to Vagrant."
else