Update moonraker_nginx.sh

This commit is contained in:
Cyril 2024-04-16 12:00:57 +02:00
parent ce76140b2e
commit 42af661528

View file

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