aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2009-10-26 15:02:31 -0400
committerJamie McClelland <jm@mayfirst.org>2009-10-26 15:02:31 -0400
commitd9408e563f26dcd8495e0e4a27485d5fd889814a (patch)
tree3ccfd869a9752a95818bba1cf5a773db3e66e263
parent6c532de11cb38d4d85a4692dbc531031d6840aa4 (diff)
downloadkvm-manager-d9408e563f26dcd8495e0e4a27485d5fd889814a.tar.gz
kvm-manager-d9408e563f26dcd8495e0e4a27485d5fd889814a.tar.bz2
When creating, issue set -e after validating, not before, because
validation requires checking commands that may return false.
-rwxr-xr-xkvm-creator2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-creator b/kvm-creator
index 8cb34fc..aa7fd54 100755
--- a/kvm-creator
+++ b/kvm-creator
@@ -67,8 +67,8 @@ validate() {
create() {
- set -e
validate
+ set -e
adduser "$NAME" --disabled-password --gecos "$NAME KVM user,,,"
addgroup "$NAME" kvm
for dir in .ssh vms "vms/$NAME"; do