We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b8a9c commit e81fbeaCopy full SHA for e81fbea
pkg/cli/setup.go
@@ -91,7 +91,9 @@ func (c *Context) basic() error {
91
92
// Avoid folder names being taken by files
93
// 1118 is my wife's birthday :)
94
- if err := os.MkdirAll("/tmp/oomol-lab.ovm.lock.1118", 0755); err != nil {
+ lockPrefixPath := "/tmp/oomol-lab.ovm.lock.1118"
95
+
96
+ if err := os.MkdirAll(lockPrefixPath, 0755); err != nil {
97
return err
98
}
99
@@ -107,7 +109,7 @@ func (c *Context) basic() error {
107
109
108
110
sum := md5.Sum([]byte(c.ExecutablePath))
111
hash := hex.EncodeToString(sum[:])
- c.LockFile = "/tmp/ovm/" + hash + "-" + name + ".pid"
112
+ c.LockFile = lockPrefixPath + "/" + hash + "-" + name + ".pid"
113
114
115
return nil
0 commit comments