From 311f3be864b388fb0a9f2bd8adb00a537511c6f3 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Tue, 26 Oct 2021 20:55:31 +0200 Subject: [PATCH] fix: wrong check for moonraker multi-instance The previous command also counted an available `moonraker-telegram-bot.service` and caused further issues with enabling the mainsail remoteMode accidentially. --- scripts/install_klipper_webui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_klipper_webui.sh b/scripts/install_klipper_webui.sh index 628671b..87cb486 100755 --- a/scripts/install_klipper_webui.sh +++ b/scripts/install_klipper_webui.sh @@ -329,7 +329,7 @@ mainsail_setup(){ rm -rf *.zip && ok_msg "Done!" ### check for moonraker multi-instance and if multi-instance was found, enable mainsails remoteMode - if [ $(ls /etc/systemd/system/moonraker* | wc -l) -gt 1 ]; then + if [ $(ls /etc/systemd/system/moonraker* | grep -E "moonraker(-\d+)?\.service" | wc -l) -gt 1 ]; then enable_mainsail_remotemode fi } @@ -577,4 +577,4 @@ process_haproxy_lighttpd_dialog(){ esac done fi -} \ No newline at end of file +}