diff options
author | Jamie McClelland <jm@mayfirst.org> | 2009-10-09 11:41:42 -0400 |
---|---|---|
committer | Jamie McClelland <jm@mayfirst.org> | 2009-10-09 11:41:42 -0400 |
commit | d08cb053ffe3392616cdcf8abf57b448db9c549d (patch) | |
tree | b5429cbf206567c38bff288910f56f0f3c77bb40 /kvm-creator | |
parent | 7263c76ad7cee5d0d4b9f5ee299f399e3816196e (diff) | |
download | kvm-manager-d08cb053ffe3392616cdcf8abf57b448db9c549d.tar.gz kvm-manager-d08cb053ffe3392616cdcf8abf57b448db9c549d.tar.bz2 |
don't try to create directory /etc/sv/kvm unless we are creating.
Diffstat (limited to 'kvm-creator')
-rwxr-xr-x | kvm-creator | 2 |
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 |