skrashevich/hassio-addons

[AI-Server] MODULES_PATH has the wrong value

Opened this issue · 1 comments

Hey there, thanks for your great project

I noticed that when I install a module, I don't find it anymore when I restart the addon...
It seem like the MODULES_PATH parameter is not updated...

In the appsettings.json (I did use Portainer to check it), I see "ModulesPath": "/config/ai-server/modules" which seem right
But in the addon logs, I see Infor MODULES_PATH = /app/modules

The DATA_DIR is OK, but passed as a CLI option it seem, I think that's why it works....

Maybe the wrong file is used (I saw appsettings.linux.json and maby other one), or maybe the file is loaded before it's updated by run.sh?
I'm using the addon on HassOS on a amd64 platform...

This is where my skills are not enough... 😅

Any clue?

By investigating a bit more, I found "ModulesDirPath": "%ROOT_PATH%/modules", in appsettings.json... it seems to fit, maybe this option too has to be set to the MODULES_PATH value too...