aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-09 22:58:43 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-09 22:58:43 -0300
commit4d091d8c27c4787ff95978bb09543a885c8544e4 (patch)
treef3709b542f7403b2fa8ca201846cca93abb9dbe9
parentfa8b1d95d85350e76b2a1f07953b5801b9eeadba (diff)
downloadkvmx-4d091d8c27c4787ff95978bb09543a885c8544e4.tar.gz
kvmx-4d091d8c27c4787ff95978bb09543a885c8544e4.tar.bz2
Append project name into STATE_DIR to avoid conflicts if images are in the same folder
-rwxr-xr-xkvmx2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 0ac2776..16ff3eb 100755
--- a/kvmx
+++ b/kvmx
@@ -213,7 +213,7 @@ function kvmx_initialize {
# Box and folder config
STORAGE="`dirname $image`"
- STATE_DIR="$STORAGE/state"
+ STATE_DIR="$STORAGE/state/$VM"
PIDFILE="$STATE_DIR/pid"
PORTFILE="$STATE_DIR/port"
SSHFILE="$STATE_DIR/ssh"