diff --git a/version/0.2.5/UPDATE.sh b/version/0.2.5/UPDATE.sh index 9233c290..9f2b4ce3 100644 --- a/version/0.2.5/UPDATE.sh +++ b/version/0.2.5/UPDATE.sh @@ -307,6 +307,13 @@ nginx_change_in(){ #systemctl stop nginx #systemctl disable nginx + mkdir -p /etc/letsencrypt/ + rm /etc/openpanel/nginx/options-ssl-nginx.conf + ln -s /etc/openpanel/nginx/options-ssl-nginx.conf /etc/letsencrypt/options-ssl-nginx.conf + openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem 2048 + + + # Check if jq is installed if ! command -v jq &> /dev/null; then # Install jq using apt @@ -331,7 +338,6 @@ opencli server-recreate_hosts cd /root && docker compose up -d nginx #####docker exec nginx bash -c "nginx -t && nginx -s reload" - }