fix: moonraker update function - check for patched klipper sysfile

This commit is contained in:
th33xitus
2020-09-03 09:55:37 +02:00
parent 9e13c2d0ea
commit 262e489d1a
3 changed files with 15 additions and 4 deletions

View File

@@ -70,6 +70,10 @@ update_moonraker(){
else
cd $MOONRAKER_DIR && git pull
fi
#read default printer.cfg location for the patch function
locate_printer_cfg
#patch /etc/default/klipper if entries don't match
patch_klipper_sysfile
ok_msg "Update complete!"
start_moonraker && sleep 2 && start_klipper
}