diff --git a/addnew_printer.sh b/addnew_printer.sh index b363736..06c5095 100755 --- a/addnew_printer.sh +++ b/addnew_printer.sh @@ -207,7 +207,7 @@ then -e "s/NEWPORT/$PORT/" > /etc/systemd/system/$INSTANCE.service #If a default octoprint service exists, stop and disable it - if [ -d "/etc/systemd/system/octoprint_default.service" ]; then + if [ -f "/etc/systemd/system/octoprint_default.service" ]; then systemctl stop octoprint_default.service systemctl disable octoprint_default.service fi