mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:35:19 +00:00
We use curl to test the https connection rather than wget, to avoid "server reached pm.max_children setting" error"
This commit is contained in:
parent
f69077fc99
commit
2baa0a7790
2 changed files with 1 additions and 5 deletions
|
@ -214,7 +214,7 @@ function ping_domain {
|
|||
function check_https {
|
||||
print_info "checking httpS > testing ..."
|
||||
url_https=https://$domain_name
|
||||
wget_output=$(wget -nv --spider --max-redirect 0 $url_https)
|
||||
curl_output=$(curl -s -o /dev/null -I -w "%{http_code}" $url_https)
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
print_warn "It seems that your website is not reachable through a secured https connection, you should investigate this"
|
||||
|
@ -433,6 +433,4 @@ then
|
|||
check_https
|
||||
fi
|
||||
|
||||
# Put a nice message here no confirm the website was successfully installed
|
||||
|
||||
#set +x # stop debugging from here
|
||||
|
|
|
@ -47,8 +47,6 @@ function add_nginx_conf {
|
|||
die "Something went wrong with the Nginx configuration of your website"
|
||||
fi
|
||||
nginx_conf=yes
|
||||
# It seems that we also need to restart php-fpm
|
||||
systemctl restart php8.2-fpm
|
||||
}
|
||||
|
||||
function webserver_conf {
|
||||
|
|
Loading…
Reference in a new issue