[GH-ISSUE #17] Docs for first time #10

Open
opened 2026-03-13 16:26:15 +03:00 by kerem · 0 comments
Owner

Originally created by @mslinn on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/acme-dns/acme-dns-client/issues/17

  1. The first time acme-dns-client is run, it must be run as root, or the following error will appear unless the user knew to create /etc/acmedns:

    $ acme-dns-client --help
    Error while starting up: mkdir /etc/acmedns: permission denied
    

    It would be good to generate the help message before the program attempts to access /etc/acmedns. Even better, tell the user that the directory does not exist, which means that acme-dns needs to be configured before using acme-dns-client.

  2. Here is a possible addition to the docs: If acme-dns-client is run under sudo, another issue presents. Because sudo filters out environment variables such as GOPATH by default, and changes the default GOPATH to /root/go/bin/, the first time acme-dns-client is run, it must be invoked via its fully qualified path, like this:

    $ sudo /home/user_name/go/bin/acme-dns-client --help
    
Originally created by @mslinn on GitHub (Aug 18, 2022). Original GitHub issue: https://github.com/acme-dns/acme-dns-client/issues/17 1) The first time `acme-dns-client` is run, it must be run as root, or the following error will appear unless the user knew to create `/etc/acmedns`: ``` $ acme-dns-client --help Error while starting up: mkdir /etc/acmedns: permission denied ``` It would be good to generate the help message before the program attempts to access `/etc/acmedns`. Even better, tell the user that the directory does not exist, which means that `acme-dns` needs to be configured before using `acme-dns-client`. 2) Here is a possible addition to the docs: If `acme-dns-client` is run under `sudo`, another issue presents. Because [`sudo` filters out environment variables](https://www.sudo.ws/docs/man/sudoers.man/#Command_environment) such as `GOPATH` by default, and changes the default `GOPATH` to `/root/go/bin/`, the first time `acme-dns-client` is run, it must be invoked via its fully qualified path, like this: ```shell $ sudo /home/user_name/go/bin/acme-dns-client --help ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns-client#10
No description provided.