fix: typo in moonraker instance count status

This commit is contained in:
th33xitus
2021-01-30 15:43:59 +01:00
parent 5f142da1b6
commit a7b7b362f3

View File

@@ -105,10 +105,10 @@ moonraker_status(){
done
### count amount of moonraker services
if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "klipper.service")" ]; then
if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "moonraker.service")" ]; then
instances=1
else
instances=$(systemctl list-units --full -all -t service --no-legend | grep -E "klipper-[[:digit:]].service" | wc -l)
instances=$(systemctl list-units --full -all -t service --no-legend | grep -E "moonraker-[[:digit:]].service" | wc -l)
fi
### display status