aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2009-10-09 11:41:42 -0400
committerJamie McClelland <jm@mayfirst.org>2009-10-09 11:41:42 -0400
commitd08cb053ffe3392616cdcf8abf57b448db9c549d (patch)
treeb5429cbf206567c38bff288910f56f0f3c77bb40
parent7263c76ad7cee5d0d4b9f5ee299f399e3816196e (diff)
downloadkvm-manager-d08cb053ffe3392616cdcf8abf57b448db9c549d.tar.gz
kvm-manager-d08cb053ffe3392616cdcf8abf57b448db9c549d.tar.bz2
don't try to create directory /etc/sv/kvm unless we are creating.
-rwxr-xr-xkvm-creator2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-creator b/kvm-creator
index 2a7bb2d..eb7fb96 100755
--- a/kvm-creator
+++ b/kvm-creator
@@ -13,7 +13,7 @@ VG="$2"
SIZE="${3:-3G}"
RAM="${4:-512}"
-[ ! -d /etc/sv/kvm ] && mkdir /etc/sv/kvm
+[ "$CMD" == "create" ] && [ ! -d /etc/sv/kvm ] && mkdir /etc/sv/kvm
ls /etc/sv/kvm/* &> /dev/null
if [ "$?" -eq 0 ]; then