]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Append project name into STATE_DIR to avoid conflicts if images are in the same folder
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 01:58:43 +0000 (22:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 01:58:43 +0000 (22:58 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 0ac2776cabddc4724e004c165942c9fc1b57118c..16ff3eb061cfec973c269ec52f1dfa7e03c4001b 100755 (executable)
--- 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"