Small tweaks to improve the rebuild process

This commit is contained in:
Alexandre Aubin 2019-02-18 16:58:41 +01:00
parent 0a989d0c56
commit 8074e71d8a

View file

@ -162,6 +162,7 @@ function rebuild_ynhdev()
vagrant up $BOX --provider=lxc || critical "Could not create the box ?" vagrant up $BOX --provider=lxc || critical "Could not create the box ?"
# Package box # Package box
rm -f /tmp/ynh-dev.box
vagrant package $BOX --output /tmp/$BOX.box || critical "Could not package package the box ?" vagrant package $BOX --output /tmp/$BOX.box || critical "Could not package package the box ?"
# Destroy current box # Destroy current box
@ -171,7 +172,7 @@ function rebuild_ynhdev()
# User message, and exit # User message, and exit
info "The Vagrant box was packaged to /tmp/$BOX.box" info "The Vagrant box was packaged to /tmp/$BOX.box"
info "You might want to run : vagrant box add 'yunohost/ynh-dev' /tmp/$BOX.box" info "You might want to run : vagrant box add 'yunohost/ynh-dev' /tmp/$BOX.box --force"
} }
function show_vm_ip() function show_vm_ip()