IQMESH OTA shall obey preconfigured paths
- reference ILaunchServices
- get the daemon process wide pre-configured cache directory
- add specific path base on the cache root
m_cacheDir = m_iLaunchService->getCacheDir();
m_cacheDir += "/upload";
For example the daemon gets its paths from config.json
:
{
"applicationName": "IqrfGatewayDaemon",
"resourceDir": "",
"dataDir": "/usr/share/iqrf-gateway-daemon",
"cacheDir": "/var/cache/iqrf-gateway-daemon",
"userDir": "",
"configurationDir": "/etc/iqrf-gateway-daemon",
"deploymentDir": "/usr/lib/iqrf-gateway-daemon",
}
Then resulting OTA cache path will be: /var/cache/iqrf-gateway-daemon/upload
Edited by Frantisek Mikulu