hassio-addons / addon-unifi

UniFi Network Application - Home Assistant Community Add-ons
https://addons.community
MIT License
278 stars 138 forks source link

Unable to set system.properties variables inside docker container #378

Closed leacho73 closed 2 years ago

leacho73 commented 2 years ago

Problem/Motivation

I have a requirement to set a couple of variables inside the system.properties file inside the docker container, or via an external file mapping

Expected behavior

I would expect the system.properties file to be mapped outside the docker container.

Actual behavior

I am unable to find an external mapped file, or modify the file inside the docker container.

Steps to reproduce

I tried the steps in this support document - (https://help.ui.com/hc/en-us/articles/205202580-UniFi-Explaining-the-system-properties-File#h_01EZWX756ZGJK0630FKS83N0NF)

Proposed changes

It may be that the system.properties file is already mapped outside of the container, but I am unable to find any reference to this - if its not, could it be made available via a mapping?

frenck commented 2 years ago

I have a requirement to set a couple of variables inside the system.properties file inside the docker container, or via an external file mapping

That is not possible, Home Assistant does not provide a way to provide external data folders for add-ons.

I would expect the system.properties file to be mapped outside the docker container.

I am unable to find an external mapped file, or modify the file inside the docker container.

See my answer above.

if its not, could it be made available via a mapping?

I cannot do that, sorry!

This add-on is most likely not for you.

../Frenck