aerokube / cm

Configuration manager for Aerokube products
https://aerokube.com/cm/latest/
Apache License 2.0
119 stars 31 forks source link

New functionality to set custom directory for config files #335

Closed SimonyanG closed 1 year ago

SimonyanG commented 1 year ago

Enhance functionality in CM by introducing the AEROKUBE_CONFIG_DIR variable, allowing users to conveniently store the .aerokube directory within a specified location.

vania-pooh commented 1 year ago

@SimonyanG how about just overriding HOME environment variable instead?

SimonyanG commented 1 year ago

@SimonyanG how about just overriding HOME environment variable instead?

i tried, didn't work, GO gets home location from /etc/passwd instead of HOME env value

HovhannesV commented 1 year ago

Please see this answer. The old API (as far as we understand) uses passwd file instead of the HOME env. The new API uses HOME env.

vania-pooh commented 1 year ago

@SimonyanG let's fix getHomeDir() function to use os.UserHomeDir() instead.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.