Set bool flag once storage dir created

pull/1234/head
Philip O'Toole 2014-12-15 21:55:57 -08:00
parent 3fbdf05637
commit 0fd2bc03a2
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ func execRun(args []string) {
if err := os.MkdirAll(config.Storage.Dir, 0744); err != nil {
log.Fatal(err)
}
storageDirExists = true
// Flag that local mode is required.
ioutil.WriteFile(filepath.Join(config.Storage.Dir, "local"), nil, 0644)
}