fix: restart moonraker after moonraker.conf patch (fixes #225)

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus
2022-07-22 10:16:00 +02:00
parent 6cb8d70b63
commit d4207d710c
4 changed files with 28 additions and 0 deletions

View File

@@ -458,6 +458,7 @@ function compare_telegram_bot_versions() {
#================================================#
function patch_telegram_bot_update_manager() {
local patched="false"
local moonraker_configs
moonraker_configs=$(find "${KLIPPER_CONFIG}" -type f -name "moonraker.conf" | sort)
@@ -480,5 +481,11 @@ install_script: scripts/install.sh
MOONRAKER_CONF
fi
patched="true"
done
if [[ ${patched} == "true" ]]; then
do_action_service "restart" "moonraker"
fi
}