Switch to new data root / core module structure

This commit is contained in:
Daniel 2019-07-31 22:32:29 +02:00
parent c4b9c73f41
commit 2ac64aedff
5 changed files with 55 additions and 53 deletions

View file

@ -104,7 +104,7 @@ func loadRegistry() error {
defer registryLock.Unlock()
// read file
filePath := path.Join(rootDir, registryFileName)
filePath := path.Join(rootStructure.Path, registryFileName)
data, err := ioutil.ReadFile(filePath)
if err != nil {
if os.IsNotExist(err) {
@ -139,7 +139,7 @@ func saveRegistry(lock bool) error {
}
// write file
filePath := path.Join(rootDir, registryFileName)
filePath := path.Join(rootStructure.Path, registryFileName)
return ioutil.WriteFile(filePath, data, 0600)
}