From 3785009411066248fb48a2c40aafab9276b6ac2d Mon Sep 17 00:00:00 2001 From: Elias Bakken Date: Fri, 31 May 2024 17:05:33 +0200 Subject: [PATCH] Add recore plugin to octoprint --- userpatches/overlay/bins/is-ssh-enabled | 7 +++++++ userpatches/overlay/install_components/octoprint.sh | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 userpatches/overlay/bins/is-ssh-enabled diff --git a/userpatches/overlay/bins/is-ssh-enabled b/userpatches/overlay/bins/is-ssh-enabled new file mode 100755 index 0000000..c590c2c --- /dev/null +++ b/userpatches/overlay/bins/is-ssh-enabled @@ -0,0 +1,7 @@ +#!/bin/bash + +if systemctl is-active --quiet ssh; then + echo "true" +else + echo "false" +fi diff --git a/userpatches/overlay/install_components/octoprint.sh b/userpatches/overlay/install_components/octoprint.sh index bafc088..ff401d7 100644 --- a/userpatches/overlay/install_components/octoprint.sh +++ b/userpatches/overlay/install_components/octoprint.sh @@ -30,12 +30,17 @@ install_octoprint(){ cd OctoprintKlipperPlugin /home/debian/OctoPrint/venv/bin/python setup.py install - cd /home/debian git clone https://github.com/LazeMSS/OctoPrint-TopTemp.git chown -R debian:debian /home/debian/OctoPrint-TopTemp cd OctoPrint-TopTemp /home/debian/OctoPrint/venv/bin/python setup.py install + + cd /home/debian + git clone https://github.com/intelligent-agent/octoprint_recore.git + chown -R debian:debian /home/debian/octoprint_recore + cd octoprint_recore + /home/debian/OctoPrint/venv/bin/python setup.py install } install_octodash() {