ansible-role-letsencrypt-ac.../files/acme-sh-install

16 lines
369 B
Bash

#!/bin/bash
RETVAL=
if [ -f "/etc/default/acme_sh_request_env" ] ; then
. "/etc/default/acme_sh_request_env"
else
exit 1
fi
cd $ACME_SH_GIT_DIST_DIR || exit 1
./acme.sh $ACME_SH_INSTALL_OPTS
RETVAL=$?
cd "$ACME_SH_BINDIR" || exit 1
./acme.sh --home $ACME_SH_BINDIR --config-home $ACME_SH_CONFIG_HOME --set-default-ca --server $ACME_SH_DEFAULT_CA
exit $RETVAL