From 65dee70f4b074e9171d131273045976cf6e9bdcf Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 18 Sep 2019 14:51:39 -0600 Subject: conf: do not create config folder and migrate if preset Signed-off-by: Jason A. Donenfeld --- conf/store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'conf/store.go') diff --git a/conf/store.go b/conf/store.go index 504a0d01..21bd3a22 100644 --- a/conf/store.go +++ b/conf/store.go @@ -129,7 +129,9 @@ func LoadFromName(name string) (*Config, error) { } func LoadFromPath(path string) (*Config, error) { - tunnelConfigurationsDirectory() // Provoke migrations, if needed. + if !disableAutoMigration { + tunnelConfigurationsDirectory() // Provoke migrations, if needed. + } name, err := NameFromPath(path) if err != nil { -- cgit v1.2.3-59-g8ed1b