From 42af66152805f97832b09a905a4a549feb0211ea Mon Sep 17 00:00:00 2001 From: Cyril Date: Tue, 16 Apr 2024 12:00:57 +0200 Subject: [PATCH] Update moonraker_nginx.sh --- scripts/moonraker_nginx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/moonraker_nginx.sh b/scripts/moonraker_nginx.sh index 92c1c70..8a8640f 100755 --- a/scripts/moonraker_nginx.sh +++ b/scripts/moonraker_nginx.sh @@ -36,6 +36,9 @@ function install_moonraker_nginx(){ chmod +x "$INITD_FOLDER"/S56moonraker_service fi echo -e "Info: Copying Moonraker configuration file..." + if [ -f "$KLIPPER_CONFIG_FOLDER"/moonraker.conf ]; then + rm -f "$KLIPPER_CONFIG_FOLDER"/moonraker.conf + fi cp "$MOONRAKER_URL2" "$KLIPPER_CONFIG_FOLDER"/moonraker.conf if [ -f "$PRINTER_DATA_FOLDER"/moonraker.asvc ]; then rm -f "$PRINTER_DATA_FOLDER"/moonraker.asvc