mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 15:53:36 +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.timeout = config.getfloat('timeout', 2., above=0.)
|
||||
self.verbose = config.getboolean('verbose', True)
|
||||
self.terminate = config.getboolean('terminate', True)
|
||||
self.proc_fd = None
|
||||
self.partial_output = ""
|
||||
self.gcode.register_mux_command(
|
||||
@@ -68,7 +69,7 @@ class ShellCommand:
|
||||
if proc.poll() is not None:
|
||||
complete = True
|
||||
break
|
||||
if not complete:
|
||||
if not complete and self.terminate:
|
||||
proc.terminate()
|
||||
if self.verbose:
|
||||
if self.partial_output:
|
||||
|
||||
@@ -61,8 +61,8 @@ function mobileraker_setup() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
status_msg "Installing Mobileraker's companion ..."
|
||||
if "${MOBILERAKER_DIR}"/scripts/install-mobileraker-companion.sh; then
|
||||
status_msg "Starting installer of Mobileraker's companion ..."
|
||||
if "${MOBILERAKER_DIR}"/scripts/install.sh; then
|
||||
ok_msg "Mobileraker's companion successfully installed!"
|
||||
else
|
||||
print_error "Mobileraker's companion installation failed!"
|
||||
@@ -233,7 +233,7 @@ primary_branch:main
|
||||
managed_services: mobileraker
|
||||
env: ${HOME}/mobileraker-env/bin/python
|
||||
requirements: scripts/mobileraker-requirements.txt
|
||||
install_script: scripts/install-mobileraker-companion.sh
|
||||
install_script: scripts/install.sh
|
||||
MOONRAKER_CONF
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user