Changeset View
Changeset View
Standalone View
Standalone View
head/security/acme.sh/files/pkg-install.in
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/bin/sh | |||||
# | |||||
# $FreeBSD$ | |||||
if [ "$2" = "POST-INSTALL" ]; then | |||||
if [ ! -d ~acme/.acme.sh ]; then | |||||
/usr/bin/install -d -o acme -g acme -m 750 ~acme/.acme.sh | |||||
fi | |||||
if [ ! -d ~acme/certs ]; then | |||||
/usr/bin/install -d -o acme -g acme -m 750 ~acme/certs | |||||
fi | |||||
if [ ! -d ~acme/.acme.sh/dnsapi ]; then | |||||
/bin/ln -sf %%EXAMPLESDIR%%/dnsapi ~acme/.acme.sh | |||||
fi | |||||
if [ ! -f ~acme/.acme.sh/account.conf.sample ]; then | |||||
/bin/cat << EOF >> ~acme/.acme.sh/account.conf.sample | |||||
NSUPDATE_SERVER="mydns.example.org" | |||||
NSUPDATE_KEY="/var/db/acme/Kmydns.example.org.+165+59977.key" | |||||
DEFAULT_DNS_SLEEP="10" | |||||
CERT_HOME="/var/db/acme/certs" | |||||
LOG_FILE='/var/log/acme.sh.log' | |||||
EOF | |||||
/bin/chmod 640 ~acme/.acme.sh/account.conf.sample | |||||
fi | |||||
fi |