mirror of
https://github.com/safing/portbase
synced 2025-09-14 17:19:51 +00:00
Switch to new data root / core module structure
This commit is contained in:
parent
c4b9c73f41
commit
2ac64aedff
5 changed files with 55 additions and 53 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue