☔ SWU: empty restart command == unset

This commit is contained in:
Gina Häußge committed 2019-04-05 15:37:25 +02:00
1 parent 54c885f1ad
commit c28faa8032
1 file changed
+1 -1
@@ -912,7 +912,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
elif restart_type == "environment":
restart_command = self._settings.global_get(["server", "commands", "systemRestartCommand"])
if restart_command is not None:
if restart_command:
self._send_client_message("restarting", dict(restart_type=restart_type, results=target_results))
try:
self._perform_restart(restart_command)