]> gitweb.fluxo.info Git - vbox.git/commitdiff
Initial upgrade action
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Nov 2014 16:46:48 +0000 (14:46 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Nov 2014 16:46:48 +0000 (14:46 -0200)
vbox

diff --git a/vbox b/vbox
index 42dd8af0375c2e331d33be84c0e935c0038df5af..327a620c560ad4125440fd9ed15fbd6e4833a739 100755 (executable)
--- a/vbox
+++ b/vbox
@@ -25,6 +25,10 @@ if [ ! -z "$VM" ]; then
   elif [ "$COMMAND" == "halt" ]; then
     OPTIONS="poweroff"
     COMMAND="controlvm"
+  elif [ "$COMMAND" == "upgrade" ]; then
+    OPTIONS="execute --username vagrant --password vagrant --image /home/vagrant/apps/hydra/hydractl"
+    OPTIONS="$OPTIONS --verbose --wait-exit --wait-stdout --wait-stderr -- upgrade clean"
+    COMMAND="guestcontrol"
   else
     usage
   fi