Squashed commit of the following:

commit 8c90a783b6
Author: Samuel Huang <samuelh2006@gmail.com>
Date:   Fri Oct 4 20:37:19 2024 +1000

    Trivy compliant

commit 05857d2008
Author: Samuel Huang <samuelh2006@gmail.com>
Date:   Thu Oct 3 21:44:08 2024 +1000

    Add workflow_dispatch to Codacy

commit 4d3a971d17
Author: Samuel Huang <samuelh2006@gmail.com>
Date:   Thu Oct 3 21:36:40 2024 +1000

    Trivy compliant

commit a9c25bbf1f
Author: Samuel Huang <samuelh2006@gmail.com>
Date:   Thu Oct 3 20:56:44 2024 +1000

    Update trivy scanner

commit 368a9c36e0
Author: Samuel Huang <samuelh2006@gmail.com>
Date:   Tue Oct 1 08:20:43 2024 +1000

    Codacy compliant
This commit is contained in:
Samuel Huang
2024-10-04 21:07:51 +10:00
parent 614d53e540
commit b5d63799c0
20 changed files with 63 additions and 62 deletions

6
run.sh
View File

@@ -78,13 +78,13 @@ while true ; do
;;
--lgp|--lgr|--lgt|--lsp|--lst|--ltr|--ltt|--lwp|--lwt|--mtt|--mwp|--mwt|--ttt|--twp|--twt)
# Alias options
SVC=$(echo $1|tr -d '\-\-')
SVC=$(echo "$1"|tr -d "\-\-")
SVCMD+=("${DIR}/server-${SVC}.sh $2")
shift 2
;;
--ltrx|--lttx)
# Alias options
SVC=$(echo $1|tr -d '\-\-'|tr -d x)
SVC=$(echo "$1"|tr -d "\-\-"|tr -d "x")
SVCMD+=("${DIR}/server-${SVC}.sh $2,xtls")
shift 2
;;
@@ -156,7 +156,7 @@ if [ "${#CERTDOMAIN[@]}" -gt 0 ]; then
do
echo "Requesting TLS cert for ${DOMAIN} ..."
echo "/root/acme.sh/acme.sh --cert-home ${CERTHOME} --issue --standalone -d ${DOMAIN} --debug"
/root/acme.sh/acme.sh --cert-home "${CERTHOME}" --issue --standalone -d ${DOMAIN} --debug
/root/acme.sh/acme.sh --cert-home "${CERTHOME}" --issue --standalone -d "${DOMAIN}" --debug
((TRY++))
if [ "${TRY}" -ge 3 ]; then
echo "Requesting TLS cert for ${DOMAIN} failed. Check log please."