Skip to content

Commit d36259d

Browse files
authored
fix(entrypoint.sh): missing ecc param
1 parent 6a21ebd commit d36259d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

entrypoint.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ do
113113
rm /certs/${!host}/le-ok
114114
fi
115115
fi
116-
if [[ -e /certs/${!host}/le-ok ]]; then
117-
mkdir -p /root/.acme.sh/${!host}/
118-
cp /certs/${!host}/csr/* /root/.acme.sh/${!host}/
119-
/root/.acme.sh/acme.sh $test --log --renew -d ${!host} $server
120-
fi
121116
ecc=""
122117
keyLengthTest=`echo "$keyLength" | /usr/bin/cut -c1-2`
123118
if [ "$keyLengthTest" = "ec" ]; then
124119
ecc="--ecc"
125120
fi
121+
if [[ -e /certs/${!host}/le-ok ]]; then
122+
mkdir -p /root/.acme.sh/${!host}/
123+
cp /certs/${!host}/csr/* /root/.acme.sh/${!host}/
124+
/root/.acme.sh/acme.sh $test --log --renew -d ${!host} $ecc $server
125+
fi
126126
# Replace the existing self-signed certificate with a LE one
127127
if [ ! -e /certs/${!host}/le-ok ]; then
128128
echo ""

0 commit comments

Comments
 (0)