scripts: remove Klipper check in install script

Moonraker no longer requires that Klipper be installed and started prior to launch.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-10-31 06:11:06 -04:00
parent 21305853ce
commit f9372f3638
1 changed files with 0 additions and 15 deletions

View File

@ -9,18 +9,6 @@ FORCE_DEFAULTS="n"
CONFIG_PATH="${HOME}/moonraker.conf"
LOG_PATH="/tmp/moonraker.log"
# Step 1: Verify Klipper has been installed
check_klipper()
{
if [ "$(sudo systemctl list-units --full -all -t service --no-legend | grep -F "klipper.service")" ]; then
echo "Klipper service found!"
else
echo "Klipper service not found, please install Klipper first"
exit -1
fi
}
# Step 2: Clean up legacy installation
cleanup_legacy() {
if [ -f "/etc/init.d/moonraker" ]; then
@ -104,9 +92,7 @@ EOF
start_software()
{
report_status "Launching Moonraker API Server..."
sudo systemctl stop klipper
sudo systemctl restart moonraker
sudo systemctl start klipper
}
# Helper functions
@ -142,7 +128,6 @@ done
# Run installation steps defined above
verify_ready
check_klipper
cleanup_legacy
install_packages
create_virtualenv