固定Typecho Dockerfile中的PHP版本,改进Nginx安装时配置中的域名过滤

This commit is contained in:
lsy 2024-12-14 16:08:43 +08:00
parent 0d4497c5e9
commit 9d4cfb078d
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ mkdir php
mkdir -p nginx/conf
cat > "./php/Dockerfile" << 'EOF'
FROM php:fpm
FROM php:8.2-fpm
# 更新包列表并安装 pdo_mysql 扩展
RUN apt-get update && \

View File

@ -29,7 +29,7 @@ else
read -p "请选择:" user_choice
bash "$(dirname $(dirname $0))/acme/test.sh"
bash "$(dirname $(dirname $0))/acme/apply.sh" "nginx" "${domain_names}"
folder_domain=$(ls ${HOME}/.acme.sh/ | grep "${primary_domain}")
folder_domain=$(ls ${HOME}/.acme.sh/ | grep "^${primary_domain}" | head -n1)
ssl_cert_path="${HOME}/.acme.sh/${folder_domain}/fullchain.cer"
ssl_key_path="${HOME}/.acme.sh/${folder_domain}/${primary_domain}.key"
fi