Skip to content
Snippets Groups Projects
Commit 22065c3a authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update text output

parent 8d0b76f4
Branches
No related tags found
1 merge request!25update text output
...@@ -578,6 +578,11 @@ function public_add(){ ...@@ -578,6 +578,11 @@ function public_add(){
local iCounter local iCounter
typeset -i iCounter=0 typeset -i iCounter=0
_wd "--- create output dir $dircerts"
mkdir -p "${CM_dircerts}" 2>/dev/null
_wd "--- issue certificate"
for _mydomain in $CM_fqdn $* for _mydomain in $CM_fqdn $*
do do
iCounter+=1 iCounter+=1
...@@ -585,7 +590,7 @@ function public_add(){ ...@@ -585,7 +590,7 @@ function public_add(){
if [ -n "$CM_webroot" ] if [ -n "$CM_webroot" ]
then then
echo "WEBROOT found" echo "INFO: Using http request on port 80 as challenge; put file into $CM_webroot"
if [ $iCounter -eq 1 ] if [ $iCounter -eq 1 ]
then then
_params+="-w $CM_webroot " _params+="-w $CM_webroot "
...@@ -593,6 +598,7 @@ function public_add(){ ...@@ -593,6 +598,7 @@ function public_add(){
else else
if [ -n "${CM_challenge_alias}" ] if [ -n "${CM_challenge_alias}" ]
then then
echo "INFO: Using DNS for challenge"
_params+=" --challenge-alias " _params+=" --challenge-alias "
if ! echo "$_mydomain" | grep "${CM_certmatch}" >/dev/null if ! echo "$_mydomain" | grep "${CM_certmatch}" >/dev/null
then then
...@@ -607,10 +613,6 @@ function public_add(){ ...@@ -607,10 +613,6 @@ function public_add(){
# 2023-05-08: Specifies the domain key length # 2023-05-08: Specifies the domain key length
_params+="--keylength 2048 " _params+="--keylength 2048 "
_wd "--- create output dir $dircerts"
mkdir -p "${CM_dircerts}" 2>/dev/null
_wd "--- create certificate"
echo "$ACME --issue $_params $ACME_Params" echo "$ACME --issue $_params $ACME_Params"
if ! $ACME --issue $_params $ACME_Params if ! $ACME --issue $_params $ACME_Params
then then
...@@ -929,7 +931,7 @@ cat <<ENDOFHEADER ...@@ -929,7 +931,7 @@ cat <<ENDOFHEADER
$line $line
- - - ---===>>> CERT MANAGER - v$_version <<<===--- - - - - - - ---===>>> CERT MANAGER - v$_version <<<===--- - - -
$line $line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment