File acme.sh_wrapper of Package acme.sh
#!/bin/sh
# acme.sh expects these two environment
# variables to be set and recommends the
# user to source an environment file in
# their bashrc. As we should not edit
# a user's bashrc or profile, we use this
# wrapper to set sane defaults.
# The user is still able to overwrite
# these with --config-home or --home
if [ -r /etc/default/acme.sh ] ; then
source /etc/default/acme.sh
fi
if [ -n "$LE_CONFIG_HOME" ] ; then
export LE_CONFIG_HOME
fi
if [ -n "$CERT_HOME" ] ; then
export CERT_HOME
fi
export LE_WORKING_DIR=/usr/share/acme.sh
/usr/share/acme.sh/acme.sh "$@"