Skip to content

Commit

Permalink
Show error message if lxc has unsupported version.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Girko <ol@infoserver.lv>
  • Loading branch information
Oleg Girko committed Dec 4, 2018
1 parent 1eb7fa6 commit b4c6dde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-vm-lxc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ vm_startup_lxc_standalone() {
lxc-create -n "$LXCID" -f "$LXCCONF" || cleanup_and_exit 1
lxc-start -n "$LXCID" "$vm_init_script"
;;
*)
echo "Unsupported lxc version $LXCVERSION!" >&2
cleanup_and_exit 1
;;
esac
}

Expand Down

0 comments on commit b4c6dde

Please sign in to comment.