New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | homeassistant: Add a soft link for config folder at install #1308
Comments
@borpin Very easy to implement, otherwise depending on if the user logs into the system via "root" or "dietpi" or an own created user name, We install and configure homeassistant system wide and not per-user. A config location inside the user home directory could be interpreted wrong and users might wonder why changes with one user affect the others as well. So finally, if we aim to keep a system wide configuration, I would leave it at The issue would be the same for @Fourdee |
This is really old - was it before V6? I think it is likely that the user would use HA from the same user account as they installed it from (unless unattended). Adding it to that users home folder would help new users. Perhaps an item in the install instructions would be sufficient. |
@borpin
The issue is that
At least this is easy and uncritical. About other solutions we have to think carefully first and find a way that works well for all applications that usually use the users home dir. What I just found:
Just added a hint to the forum page: https://dietpi.com/phpbb/viewtopic.php?p=10416#p10416 |
By configuring HA to use Should Again, if this is a specific design/setup decision (not saying it is the wrong decision), that should be explained to a user in the notes. Ultimately, could you offer the choice between per user or global setup? Do the same sort of issues appear with node-red (not tried it recently)? |
@borpin But this does not include all software titles or packages. E.g.
Installing Homeassistant via dietpi-software places a single systemd unit with a separate run user to start it on boot. Thus there is just one instance for all users and nothing else makes sense. The instance runs as it's own separate unix user |
@MichaIng Has pretty much covered the original questions, however, i'll add a little to this aswell, try to clarify.
The config file is a single item required by the program, regardless of the amount of users on HA. To prevent additional users from making changes to the HA config files, it would require HA to implement a user login system. Its not something we can do our end, as running multiple HA servers, via multiple unique install directories, is not a solution.
DietPi follows the standard rules of process execution, in that:
Another example is a forum (PHPBB3), which allows for permission control, via user and group accounts, in the software title itself. I hope this answers your questions, I'll mark this as closed, however, please reopen if required. |
Feature Request
Background
Same as issue #1256
Homeassistant users expect to find their configurations etc in a folder ~/.homeassistant. DietPi uses the folder /mnt/dietpi_userdata/homeassistant.
Solution
Add a soft link at install time from ~/.homeassistant to /mnt/dietpi_userdata/homeassistant
The text was updated successfully, but these errors were encountered: