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

16 lines
369 B
Plaintext
Raw Normal View History

#!/bin/bash
2021-07-05 12:38:21 +02:00
RETVAL=
if [ -f "/etc/default/acme_sh_request_env" ] ; then
. "/etc/default/acme_sh_request_env"
else
exit 1
fi
2021-07-08 15:57:09 +02:00
cd $ACME_SH_GIT_DIST_DIR || exit 1
./acme.sh $ACME_SH_INSTALL_OPTS
2021-07-05 12:38:21 +02:00
RETVAL=$?
2021-07-08 15:57:09 +02:00
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
2021-07-05 12:38:21 +02:00
exit $RETVAL