ports/security/acme.sh/files/pkg-message.in
Ben Woods 80a7367942 security/acme.sh: Use .conf suffix for /usr/local/etc/newsyslog.conf.d/
Rename files intended for installation to /usr/local/etc/newsyslog.conf.d/
to end with a '.conf' suffix.

Proposed changes to /etc/newsyslog.conf will only include files from the
/usr/local/etc/newsyslog.conf.d/ directory which end with '.conf' and do
not beginning with a '.' character. https://reviews.freebsd.org/D17086

Approved by:	dvl (maintainer)
Differential Revision:	https://reviews.freebsd.org/D17092
2018-09-09 22:48:30 +00:00

32 lines
1.1 KiB
Text

This script will create the following directories if they do not exist:
~acme/.acme.sh
~acme/certs
The script will also install ~acme/.acme.sh/account.conf.sample which has
sane defaults. Copy this to ~acme/.acme.sh/account.conf and edit contents
to suit.
In the %%EXAMPLESDIR%% directory, you can find the dnsapi
scripts which will be useful if you decide to use dns-01 challenges. Also
included are the deploy scripts.
A newsyslog.conf sample file is provided at %%EXAMPLESDIR%%/acme.sh.conf
and you could create a symlink from that to %%PREFIX%%/etc/newsyslog.conf.d/
Your sample cronjob looks like this:
############################################################################
$ sudo crontab -l -u acme
# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to here, no matter whose crontab this is
MAILTO=dan@example.org
7 22 * * * /usr/local/sbin/acme.sh --cron --home /var/db/acme/.acme.sh > /dev/null
############################################################################
Change x & y to some minute and hour of the day.