]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
don't try to create directory /etc/sv/kvm unless we are creating.
authorJamie McClelland <jm@mayfirst.org>
Fri, 9 Oct 2009 15:41:42 +0000 (11:41 -0400)
committerJamie McClelland <jm@mayfirst.org>
Fri, 9 Oct 2009 15:41:42 +0000 (11:41 -0400)
kvm-creator

index 2a7bb2d88b2954915f7ad32435890fa0cac83277..eb7fb964125a862a9007b704b57cbf856318af3c 100755 (executable)
@@ -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