Fix detecting existing service
This commit is contained in:
@@ -207,7 +207,7 @@ then
|
|||||||
-e "s/NEWPORT/$PORT/" > /etc/systemd/system/$INSTANCE.service
|
-e "s/NEWPORT/$PORT/" > /etc/systemd/system/$INSTANCE.service
|
||||||
|
|
||||||
#If a default octoprint service exists, stop and disable it
|
#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 stop octoprint_default.service
|
||||||
systemctl disable octoprint_default.service
|
systemctl disable octoprint_default.service
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user