mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 20:26:47 +02:00
tsnet: always attempt to create storage directory
This lets users start a server with: Dir: "./my-demo" easily. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
f0d6228c52
commit
0e0eff7541
@ -415,9 +415,9 @@ func (s *Server) start() (reterr error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.MkdirAll(s.rootPath, 0700); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := os.MkdirAll(s.rootPath, 0700); err != nil {
|
||||
return err
|
||||
}
|
||||
if fi, err := os.Stat(s.rootPath); err != nil {
|
||||
return err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user