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.
This commit is contained in:
th33xitus
2021-10-26 20:55:31 +02:00
committed by GitHub
parent 511df1a889
commit 311f3be864

View File

@@ -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
}