Your IP : 13.58.245.201


Current Path : /usr/local/mgr5/sbin/
Upload File :
Current File : //usr/local/mgr5/sbin/letsencrypt.sh

#!/bin/sh

if [ "$1" = "-T" ]; then
	echo -n "(c) Ispmanager.com"
	exit 0
fi

DOMAIN=${1}

. /usr/local/mgr5/lib/pkgsh/core_pkg_funcs.sh

Infon "Let's encrypt certificate... "
${MGRCTL} ihttpd.certs.edit domain="${DOMAIN}" type=letsencrypt sok=ok >/dev/null 2>&1
errexit=$?
if [ "${errexit}" -ne 0 ]; then
	Error "Failed. For more information see ${MGRDIR}/var/core.log"
else
	Info "OK"
fi
exit ${errexit}