mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-13 11:40:53 +08:00
config.Load discarded the json.Unmarshal error, so a config.json that did not parse was treated as absent: startup reported "no database config found" and skill_dir silently fell back to the default. Load now returns read and parse errors (a missing file is still not an error); PostgresDSN and SkillDir pass them up, and main exits with the message. install.sh wrote the database values into config.json unescaped, so a password containing " or \ produced invalid JSON, which the old Load then ignored. The values are now JSON-escaped and the port must be numeric. The .env sed replacements escape \, | and & so those characters no longer break the substitution or get rewritten by it.