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
89dfde0e74
commit
3da1913afc
@ -117,6 +117,9 @@ FUNCTIONS=(
|
|||||||
# file watcher removed in 025
|
# file watcher removed in 025
|
||||||
uninstall_watcher_service
|
uninstall_watcher_service
|
||||||
|
|
||||||
|
#remove nginx and certbot
|
||||||
|
remove_nginx_certbot
|
||||||
|
|
||||||
# openpanel/openpanel should be downloaded now!
|
# openpanel/openpanel should be downloaded now!
|
||||||
docker_compose_up_with_newer_images
|
docker_compose_up_with_newer_images
|
||||||
|
|
||||||
@ -261,6 +264,30 @@ opencli_update(){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
remove_nginx_certbot(){
|
||||||
|
|
||||||
|
|
||||||
|
systemctl stop nginx.service
|
||||||
|
systemctl disable nginx.service
|
||||||
|
service nginx stop
|
||||||
|
service nginx disable
|
||||||
|
apt-get remove nginx nginx-common -y
|
||||||
|
|
||||||
|
systemctl stop bind9
|
||||||
|
apt-get remove bind9 -y
|
||||||
|
|
||||||
|
systemctl stop certbot.service
|
||||||
|
systemctl disable certbot.service
|
||||||
|
service certbot stop
|
||||||
|
service certbot disable
|
||||||
|
apt-get remove certbot -y
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
nginx_change_in(){
|
nginx_change_in(){
|
||||||
|
|
||||||
# Check if jq is installed
|
# Check if jq is installed
|
||||||
@ -286,6 +313,7 @@ done
|
|||||||
opencli server-recreate_hosts
|
opencli server-recreate_hosts
|
||||||
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