fix: possible fix for #24

This commit is contained in:
th33xitus
2020-10-20 10:32:55 +02:00
parent 6129f15386
commit b4fc691da1
4 changed files with 52 additions and 28 deletions

View File

@@ -19,9 +19,6 @@ install_moonraker(){
restart_moonraker
restart_klipper
test_api
#test_nginx
#install_mainsail
#install_fluidd
}
system_check_moonraker(){
@@ -680,13 +677,4 @@ test_api(){
else
echo; warn_msg "Klipper API not working correctly!"; echo
fi
status_msg "Testing Nginx ..."
status_msg "Please wait ..."
status_msg "API response from http://"$HOST_IP"/printer/info :"
echo -e "${cyan}$(curl -s "http://"$HOST_IP"/printer/info")${default}"
if [ $(curl -s "http://"$HOST_IP"/printer/info" | grep '^{"result"' -c) -eq 1 ]; then
echo; ok_msg "Nginx is working correctly!"; echo
else
echo; warn_msg "Nginx is not working correctly!"; echo
fi
}