mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update UPDATE.sh
This commit is contained in:
parent
c4408e236f
commit
cc4c75d567
@ -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"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user