Skip to content
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

please define default location for settings.txt #18

Open
it-da-de opened this issue Dec 21, 2019 · 3 comments
Open

please define default location for settings.txt #18

it-da-de opened this issue Dec 21, 2019 · 3 comments

Comments

@it-da-de
Copy link

Hi,
I try the tool with a ionos 1und1 domain. I would like a definition of the location from the default config file exp: /usr/local/etc/settings.txt would be better then current directory. I found many settings.txt everywhere yesterday :-)
Thank you for that good solution!

@it-da-de it-da-de changed the title Problem with update and status please define default location for settings.txt Dec 21, 2019
@pawel-kow
Copy link
Member

Hi @it-da-de,
Indeed it would be nicer to have a more specific location for the config file.
It must be done in the way it is working platform-independent, however.

Looking briefly for options, it's not a trivial problem and the library available for the purpose https://github.com/ActiveState/appdirs does not seem to be well maintained and still with many open issues.
It requires a bit of more investigation on the possible solution.

In the mean time please use --config option to locate the config file at the desired location on your system.

@liput
Copy link

liput commented Mar 25, 2021

I've manually specified where the setting file is (in another folder), but when it runs it creates a new settings.txt in the home folder. I think it does this as it adds the last updated time. It would be good that when using the explicit flag for the setting folder, you then write back to this file

Oddly this behaviour does not happen when using the --ignore-previous-ip flag

As a workaround I just mv the new file to overwrite the original settings.txt. But this is not really ideal

@pawel-kow
Copy link
Member

@liput moved your issue to #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants