mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Update config.lua
Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
parent
0b9f50246c
commit
971cd1802c
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ function get_config()
|
||||||
-- Load the configuration file
|
-- Load the configuration file
|
||||||
local conf_file = assert(io.open(conf_path, "r"), "Configuration file is missing")
|
local conf_file = assert(io.open(conf_path, "r"), "Configuration file is missing")
|
||||||
local conf = json.decode(conf_file:read("*all"))
|
local conf = json.decode(conf_file:read("*all"))
|
||||||
|
if conf_file ~= nil then
|
||||||
conf_file:close()
|
conf_file:close()
|
||||||
|
end
|
||||||
|
|
||||||
-- Load additional rules from the `.persistent` configuration file.
|
-- Load additional rules from the `.persistent` configuration file.
|
||||||
-- The `.persistent` file contains rules that will overwrite previous rules.
|
-- The `.persistent` file contains rules that will overwrite previous rules.
|
||||||
|
|
Loading…
Reference in a new issue