mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
refactor: use different path inside container
This commit is contained in:
5
main.go
5
main.go
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"ironmount/internal/constants"
|
||||
"ironmount/internal/db"
|
||||
"ironmount/internal/driver"
|
||||
"net"
|
||||
@@ -13,8 +14,6 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
const volumeRoot = "/tmp/ironmount"
|
||||
|
||||
type Volume struct {
|
||||
Name string
|
||||
Path string
|
||||
@@ -29,7 +28,7 @@ func main() {
|
||||
log.Fatal().Err(err).Msg("Failed to create plugin directory")
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(volumeRoot, 0755); err != nil {
|
||||
if err := os.MkdirAll(constants.VolumeRootLocal, 0755); err != nil {
|
||||
log.Fatal().Err(err).Msg("Failed to create volume root")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user