mirror of
https://github.com/dw-0/kiauh.git
synced 2026-04-03 08:15:14 +05:00
Compare commits
3 Commits
e3784c497b
...
96d32973d3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96d32973d3 | ||
|
|
b6c6edb622 | ||
|
|
d190a60ff7 |
@@ -18,6 +18,7 @@ class ShellCommand:
|
|||||||
self.command = shlex.split(cmd)
|
self.command = shlex.split(cmd)
|
||||||
self.timeout = config.getfloat('timeout', 2., above=0.)
|
self.timeout = config.getfloat('timeout', 2., above=0.)
|
||||||
self.verbose = config.getboolean('verbose', True)
|
self.verbose = config.getboolean('verbose', True)
|
||||||
|
self.terminate = config.getboolean('terminate', True)
|
||||||
self.proc_fd = None
|
self.proc_fd = None
|
||||||
self.partial_output = ""
|
self.partial_output = ""
|
||||||
self.gcode.register_mux_command(
|
self.gcode.register_mux_command(
|
||||||
@@ -68,7 +69,7 @@ class ShellCommand:
|
|||||||
if proc.poll() is not None:
|
if proc.poll() is not None:
|
||||||
complete = True
|
complete = True
|
||||||
break
|
break
|
||||||
if not complete:
|
if not complete and self.terminate:
|
||||||
proc.terminate()
|
proc.terminate()
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
if self.partial_output:
|
if self.partial_output:
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ function mobileraker_setup() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
status_msg "Installing Mobileraker's companion ..."
|
status_msg "Starting installer of Mobileraker's companion ..."
|
||||||
if "${MOBILERAKER_DIR}"/scripts/install-mobileraker-companion.sh; then
|
if "${MOBILERAKER_DIR}"/scripts/install.sh; then
|
||||||
ok_msg "Mobileraker's companion successfully installed!"
|
ok_msg "Mobileraker's companion successfully installed!"
|
||||||
else
|
else
|
||||||
print_error "Mobileraker's companion installation failed!"
|
print_error "Mobileraker's companion installation failed!"
|
||||||
@@ -233,7 +233,7 @@ primary_branch:main
|
|||||||
managed_services: mobileraker
|
managed_services: mobileraker
|
||||||
env: ${HOME}/mobileraker-env/bin/python
|
env: ${HOME}/mobileraker-env/bin/python
|
||||||
requirements: scripts/mobileraker-requirements.txt
|
requirements: scripts/mobileraker-requirements.txt
|
||||||
install_script: scripts/install-mobileraker-companion.sh
|
install_script: scripts/install.sh
|
||||||
MOONRAKER_CONF
|
MOONRAKER_CONF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user