From cc4c75d5677c20edc08610a159cf29c4eae8583d Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 19 Aug 2024 12:24:35 +0200 Subject: [PATCH] Update UPDATE.sh --- version/0.2.5/UPDATE.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" - }