diff options
-rwxr-xr-x | kvmx | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -184,7 +184,7 @@ function __kvmx_initialize { mkdir -p $STATE_DIR $LOG_DIR - if [ ! -e "$image" ] && [ "$ACTION" != "up" ] && [ "$ACTION" != "purge" ] \ + if [ ! -e "$image" ] && [ "$ACTION" != "up" ] && [ "$ACTION" != "provision" ] && [ "$ACTION" != "purge" ] \ && [ "$ACTION" != "destroy" ] && [ "$ACTION" != "install" ]; then echo "$BASENAME: file not found: $image" exit 1 @@ -966,8 +966,9 @@ function kvmx_purge { # Provision a machine function kvmx_provision { if ! kvmx_running; then - echo "$BASENAME: guest $VM is not running" - exit 1 + kvmx_up || exit 1 + #echo "$BASENAME: guest $VM is not running" + #exit 1 fi if [ -z "$provision_command" ]; then |