mirror of
https://github.com/kepler155c/opus
synced 2025-10-20 18:27:40 +00:00
major directory reorganize
This commit is contained in:
@@ -68,7 +68,7 @@ function blockDB:seedDB(dir)
|
||||
return res
|
||||
end
|
||||
|
||||
local f = fs.open(fs.combine(dir, 'blockIds.csv'), "r")
|
||||
local f = fs.open(fs.combine('sys/etc', 'blockIds.csv'), "r")
|
||||
|
||||
if not f then
|
||||
error('unable to read blockIds.csv')
|
||||
|
@@ -3,10 +3,10 @@ local Util = require('util')
|
||||
local Config = { }
|
||||
|
||||
Config.load = function(fname, data)
|
||||
local filename = '/config/' .. fname
|
||||
local filename = 'usr/config/' .. fname
|
||||
|
||||
if not fs.exists('/config') then
|
||||
fs.makeDir('/config')
|
||||
if not fs.exists('usr/config') then
|
||||
fs.makeDir('usr/config')
|
||||
end
|
||||
|
||||
if not fs.exists(filename) then
|
||||
@@ -17,7 +17,7 @@ Config.load = function(fname, data)
|
||||
end
|
||||
|
||||
Config.update = function(fname, data)
|
||||
local filename = '/config/' .. fname
|
||||
local filename = 'usr/config/' .. fname
|
||||
Util.writeTable(filename, data)
|
||||
end
|
||||
|
||||
|
@@ -146,7 +146,7 @@ local function trusted(msg, port)
|
||||
return true
|
||||
end
|
||||
|
||||
local trustList = Util.readTable('.known_hosts') or { }
|
||||
local trustList = Util.readTable('usr/.known_hosts') or { }
|
||||
local pubKey = trustList[msg.shost]
|
||||
|
||||
if pubKey then
|
||||
|
@@ -202,7 +202,7 @@ function Manager:configure(appName, ...)
|
||||
textScale = { arg = 't', type = 'number',
|
||||
desc = 'Text scale' },
|
||||
}
|
||||
local defaults = Util.loadTable('/config/' .. appName) or { }
|
||||
local defaults = Util.loadTable('usr/config/' .. appName) or { }
|
||||
if not defaults.device then
|
||||
defaults.device = { }
|
||||
end
|
||||
@@ -3321,7 +3321,7 @@ function UI.NftImage:setImage(image)
|
||||
self.image = image
|
||||
end
|
||||
|
||||
UI:loadTheme('config/ui.theme')
|
||||
UI:loadTheme('usr/config/ui.theme')
|
||||
if os.getVersion() >= 1.79 then
|
||||
UI:loadTheme('sys/etc/ext.theme')
|
||||
end
|
||||
|
Reference in New Issue
Block a user