forked from ISTI-ansible-roles/ansible-roles
24 lines
402 B
Plaintext
24 lines
402 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
if [ -f "/etc/default/acme_sh_request_env" ] ; then
|
||
|
. "/etc/default/acme_sh_request_env"
|
||
|
else
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -f "$ACME_SH_ENV_FILE" ] ; then
|
||
|
. "$ACME_SH_ENV_FILE"
|
||
|
else
|
||
|
exit 1
|
||
|
fi
|
||
|
RETVAL=
|
||
|
|
||
|
$ACME_SH_BIN $ACME_SH_ISSUE_CERT_REQUEST > "$ACME_SH_ISSUE_LOG_FILE" 2>&1
|
||
|
RETVAL=$?
|
||
|
|
||
|
if [ $RETVAL -ne 0 ] ; then
|
||
|
touch "$ACME_SH_CONFIG_HOME/ok_certificate_issued"
|
||
|
fi
|
||
|
|
||
|
exit $RETVAL
|