Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-08-19 12:24:35 +02:00 committed by GitHub
parent c4408e236f
commit cc4c75d567
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,6 +307,13 @@ nginx_change_in(){
#systemctl stop nginx #systemctl stop nginx
#systemctl disable 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 # Check if jq is installed
if ! command -v jq &> /dev/null; then if ! command -v jq &> /dev/null; then
# Install jq using apt # Install jq using apt
@ -331,7 +338,6 @@ opencli server-recreate_hosts
cd /root && docker compose up -d nginx cd /root && docker compose up -d nginx
#####docker exec nginx bash -c "nginx -t && nginx -s reload" #####docker exec nginx bash -c "nginx -t && nginx -s reload"
} }