From e12c4c93abfea62439866af1e32e6a86221fb20c Mon Sep 17 00:00:00 2001 From: Evgenii Date: Sat, 11 Sep 2021 01:43:36 +0300 Subject: [PATCH] fix --- scripts/remove.sh | 4 ++-- scripts/status.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remove.sh b/scripts/remove.sh index e47d55b..2c12c92 100755 --- a/scripts/remove.sh +++ b/scripts/remove.sh @@ -403,11 +403,11 @@ remove_MoonrakerTelegramBot(){ fi ### remove MoonrakerTelegramBot service - if [ -e /etc/systemd/system/MoonrakerTelegramBot.service ]; then + if [ -e /etc/systemd/system/moonraker-telegram-bot.service ]; then status_msg "Removing MoonrakerTelegramBot service ..." sudo systemctl stop MoonrakerTelegramBot sudo systemctl disable moonraker - sudo rm -f $SYSTEMDDIR/MoonrakerTelegramBot.service + sudo rm -f $SYSTEMDDIR/moonraker-telegram-bot.service ###reloading units sudo systemctl daemon-reload sudo systemctl reset-failed diff --git a/scripts/status.sh b/scripts/status.sh index eba7b61..a0542eb 100755 --- a/scripts/status.sh +++ b/scripts/status.sh @@ -237,7 +237,7 @@ MoonrakerTelegramBot_status(){ ) ### count amount of MoonrakerTelegramBot_data service files in /etc/systemd/system - SERVICE_FILE_COUNT=$(ls /etc/systemd/system | grep -E "MoonrakerTelegramBot" | wc -l) + SERVICE_FILE_COUNT=$(ls /etc/systemd/system | grep -E "moonraker-telegram-bot" | wc -l) ### remove the "SERVICE" entry from the MoonrakerTelegramBot_data array if a MoonrakerTelegramBot service is installed [ $SERVICE_FILE_COUNT -gt 0 ] && unset MoonrakerTelegramBot_data[0]