Hi all, great forum!
I’ve searched here, but nothing I could find, so:
Tried things like below (on TestApps, nothing production… and other actions that even AI suggested based on core functions, but nothing sticks…
sudo midclt call app.update MyApp “$(cat final_update.json)”
{
“storage”: {
“additionalStorages”: [
{
“type”: “hostPath”,
“hostPath”: “/mnt/FreeNAS1/MyFolder”,
“mountPath”: “/media/MyFolder1”
},
{
“type”: “hostPath”,
“hostPath”: “/mnt/FreeNAS2/MyFolder”,
“mountPath”: “/media/MyFolder2”
}
]
}
}
Is there any method for programmatically adding storage that someone could suggest, please?
Note, I am going to be adding 6*3 similar mounts as above and for around 10 apps. It’s a lot of manual work which could obviously be done through the security check in the Web GUI etc., but it would be good to be able to do automate this process for people willing to take the risk, that their apps won’t start because of errors in their config ![]()
BR/Glenn