From d08cb053ffe3392616cdcf8abf57b448db9c549d Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 9 Oct 2009 11:41:42 -0400 Subject: don't try to create directory /etc/sv/kvm unless we are creating. --- kvm-creator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvm-creator') 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 -- cgit v1.2.3