acmesh-official / acmesh-official/acme.sh
multiple cronjob support for multiple `--config-home`
- Dominant language
- Shell
- Stars
- 47.6k
- Forks
- 5.7k
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 16
Description
Steps to reproduce
------------------
right now `--install-cronjob` install a cronjob only if one not exists by check `crontab -l | grep 'acme.sh --cron'`.
i have multiple `--config-home` for different purpos.
i need the support for install cronjob for different `--config-home` like:
```bash
--install-cronjob --config-home /acme.sh/letsencrypt
--install-cronjob --config-home /acme.sh/letsencrypt_test
```
Debug log
-----------------
```
/ # crontab -l
35 11 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" --config-home "/acme.sh" > /proc/1/fd/1 2>/proc/1/fd/2
/ #
/ #
/ # --install-cronjob --config-home /acme.sh/letsencrypt --debug 2
[Fri May 3 13:43:41 UTC 2024] Lets find script dir.
[Fri May 3 13:43:41 UTC 2024] _SCRIPT_='/root/.acme.sh/acme.sh'
[Fri May 3 13:43:41 UTC 2024] _script='/root/.acme.sh/acme.sh'
[Fri May 3 13:43:41 UTC 2024] _script_home='/root/.acme.sh'
[Fri May 3 13:43:41 UTC 2024] Using default home:/root/.acme.sh
[Fri May 3 13:43:41 UTC 2024] Using config home:/acme.sh/letsencrypt
[Fri May 3 13:43:41 UTC 2024] LE_WORKING_DIR='/root/.acme.sh'
https://github.com/acmesh-official/acme.sh
v3.0.8
[Fri May 3 13:43:41 UTC 2024] Running cmd: installcronjob
[Fri May 3 13:43:41 UTC 2024] Using config home:/acme.sh/letsencrypt
[Fri May 3 13:43:41 UTC 2024] default_acme_server
[Fri May 3 13:43:41 UTC 2024] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90'
[Fri May 3 13:43:41 UTC 2024] _ACME_SERVER_HOST='acme.zerossl.com'
[Fri May 3 13:43:41 UTC 2024] _ACME_SERVER_PATH='v2/DV90'
[Fri May 3 13:43:41 UTC 2024] Installing cron job
35 11 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" --config-home "/acme.sh" > /proc/1/fd/1 2>/proc/1/fd/2
/ #
```
Contributor guide
Assessment
This issue has not been assessed yet.