1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

security/acme-client: Fixes for periodic script

- Fix domains and client-args variable typos [1]
  - Don't display deploy messages when deploy-script unset[2]

PR:		213162 [1], 213163 [2]
Submitted by:	peterj
This commit is contained in:
Bernard Spil 2016-10-08 13:36:14 +00:00
parent 7211c2d697
commit df85e98722
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423507

View File

@ -32,27 +32,27 @@ case "$weekly_acme_client_enable" in
echo
echo "Checking Let's Encrypt certificate status:"
: ${weekly_acme_client_args:="-b"}
if [ -x "$weekly_acme_client_renewscript" ] ; then
$weekly_acme_client_renewscript
else
: ${weekly_acme_client_args:="-b"}
if [ -z "$weekly_acme_client_domains" ] ; then
weekly_acme-client_domains=$(hostname -f)
weekly_acme_client_domains=$(hostname -f)
echo "Using hostname: $weekly_acme_client_domains"
fi
if [ -n "$weekly_acme_client_challengedir" ] ; then
weekly_acme-client_args="$weekly_acme_client_args -C $weekly_acme_client_challengedir"
weekly_acme_client_args="$weekly_acme_client_args -C $weekly_acme_client_challengedir"
fi
%%LOCALBASE%%/bin/acme-client $weekly_acme_client_args $weekly_acme_client_domains
fi
echo "Deploying Let's Encrypt certificates:"
if [ -x "$weekly_acme_client_deployscript" ] ; then
$weekly_acme_client_deployscript
else
echo 'Skipped, deploy script not set.'
if [ -n "$weekly_acme_client_deployscript" ] ; then
if [ -x "$weekly_acme_client_deployscript" ] ; then
echo "Deploying Let's Encrypt certificates:"
$weekly_acme_client_deployscript
else
echo 'Skipped, deploy script does not exist or is not executable'
fi
fi
;;
*)