mirror of
https://github.com/samuelhbne/server-xray.git
synced 2025-12-18 12:54:39 +03:00
Squashed commit of the following:
commit8c90a783b6Author: Samuel Huang <samuelh2006@gmail.com> Date: Fri Oct 4 20:37:19 2024 +1000 Trivy compliant commit05857d2008Author: Samuel Huang <samuelh2006@gmail.com> Date: Thu Oct 3 21:44:08 2024 +1000 Add workflow_dispatch to Codacy commit4d3a971d17Author: Samuel Huang <samuelh2006@gmail.com> Date: Thu Oct 3 21:36:40 2024 +1000 Trivy compliant commita9c25bbf1fAuthor: Samuel Huang <samuelh2006@gmail.com> Date: Thu Oct 3 20:56:44 2024 +1000 Update trivy scanner commit368a9c36e0Author: Samuel Huang <samuelh2006@gmail.com> Date: Tue Oct 1 08:20:43 2024 +1000 Codacy compliant
This commit is contained in:
6
run.sh
6
run.sh
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user