aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/store.go')
-rw-r--r--conf/store.go4
1 files changed, 3 insertions, 1 deletions
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 {