make dist path overrideable
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
Jeromy committed
Jul 5, 2016 at 23:26 UTC
2db7522fe82160be67f9e32226cb7082f60867f6
1 file changed
+6
repo/fsrepo/migrations/migrations.go
+6
@@ -16,6 +16,12 @@ import (
16
17
var DistPath = "https://ipfs.io/ipns/dist.ipfs.io"
18
19
+func init() {
20
+ if dist := os.Getenv("IPFS_DIST_PATH"); dist != "" {
21
+ DistPath = dist
22
+ }
23
+}
24
+
25
const migrations = "fs-repo-migrations"
26
27
func RunMigration(newv int) error {