Skip to content

Commit

Permalink
fix: bug in acme.sh that waits 10 minute for CA and retry
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Mar 5, 2023
1 parent 9ef5f1d commit 44cf6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion acme.sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ rm -rf /opt/hiddify/
--config-home /opt/hiddify-config/acme.sh/lib/data \
--cert-home /opt/hiddify-config/acme.sh/lib/certs


sed -i 's|_sleep_overload_retry_sec=$_retryafter|_sleep_overload_retry_sec=$_retryafter; if [[ "$_retryafter" > 20 ]];then return 10; fi|g' lib/acme.sh

mkdir -p ../ssl/
4 changes: 2 additions & 2 deletions acme.sh/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ for DOMAIN in $DOMAINS; do
fi
# --server letsencrypt

./lib/acme.sh --issue --standalone -d $DOMAIN --log $(pwd)/../log/system/acme.log $flags --server letsencrypt --pre-hook 'kill -9 $(lsof -t -i:80)'
./lib/acme.sh --issue --standalone -d $DOMAIN --log $(pwd)/../log/system/acme.log $flags --server letsencrypt --pre-hook "kill -9 $(lsof -t -i:80) || echo 'nothing to kill'"
#if [[ $? != 130 && $? != 0 ]];then
./lib/acme.sh --issue --standalone -d $DOMAIN --log $(pwd)/../log/system/acme.log $flags --pre-hook 'kill -9 $(lsof -t -i:80)'
./lib/acme.sh --issue --standalone -d $DOMAIN --log $(pwd)/../log/system/acme.log $flags --pre-hook "kill -9 $(lsof -t -i:80) || echo 'nothing to kill'"
#fi
./lib/acme.sh --installcert -d $DOMAIN \
--fullchainpath $ssl_cert_path/$DOMAIN.crt \
Expand Down

0 comments on commit 44cf6ad

Please sign in to comment.