Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
check if acme already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
tacrazymage authored Oct 25, 2022
1 parent a208b63 commit 8d1009a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,15 @@ install_acme() {

#method for standalone mode
ssl_cert_issue_standalone() {
#install acme first
install_acme
if [ $? -ne 0 ]; then
LOGE "无法安装acme,请检查错误日志"
exit 1
#check for acme.sh first
if ! command -v ~/.acme.sh/acme.sh &> /dev/null
then
echo "acme.sh 无法找到。 我们将安装它"
install_acme
if [ $? -ne 0 ]; then
LOGE "安装 acme 失败,请检查日志"
exit 1
fi
fi
#install socat second
if [[ x"${release}" == x"centos" ]]; then
Expand Down

0 comments on commit 8d1009a

Please sign in to comment.