Browse Source

nebula-cert cmdnow throws help message when fail

master
HMSheets 3 years ago
parent
commit
c86867cd5a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      refresh-NebulaCA

+ 6
- 0
refresh-NebulaCA View File

@@ -123,5 +123,11 @@ if [[ $CERTISCASTATUS == true ]]; then
echo "DateTime: ${DATETIME}"
echo "NEWFILENAME: ${NEWFILENAME}"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
try
(
${ROOTPATH}/nebula-cert sign -name ${CANAME} -out-crt ${ROOTPATH}/${NEWFILENAME}.crt -out-key ${ROOTPATH}/${NEWFILENAME}.key
)
catch || {
help_msg
}
fi

Loading…
Cancel
Save