Add KlipperScreen to kiauh #44

Merged
jordanruthe merged 3 commits from master into master 2020-11-28 16:45:48 +01:00
jordanruthe commented 2020-11-27 14:51:34 +01:00 (Migrated from github.com)

Add functions to support KlipperScreen installation/removal/updating from kiauh

Add functions to support KlipperScreen installation/removal/updating from kiauh
dw-0 (Migrated from github.com) reviewed 2020-11-28 09:28:46 +01:00
dw-0 (Migrated from github.com) left a comment

Looks good to me so far, if you fix those two little things i found, i think we can merge it without an issue.

Looks good to me so far, if you fix those two little things i found, i think we can merge it without an issue.
@@ -305,0 +322,4 @@
fi
#remove KlipperScreen systemd file
if [ -e /etc/systemd/system/KlipperScreen.service ]; then
status_msg "Removing KlipperScreen configuration for Nginx ..."
dw-0 (Migrated from github.com) commented 2020-11-28 09:26:34 +01:00

The if condition here looks like a typo.
You probably wanted to check for [ -e /etc/systemd/system/KlipperScreen.service ].

And the status_msg does not suit the action followed by it.
You probably want to call it status_msg "Removing KlipperScreen Service ..."

The if condition here looks like a typo. You probably wanted to check for `[ -e /etc/systemd/system/KlipperScreen.service ]`. And the status_msg does not suit the action followed by it. You probably want to call it `status_msg "Removing KlipperScreen Service ..."`
dw-0 (Migrated from github.com) commented 2020-11-28 09:21:57 +01:00

Do we maybe need a start_klipperscreen here instead?
I haven't seen a stop_klipper call before... but only a stop_klipperscreen.

Do we maybe need a `start_klipperscreen `here instead? I haven't seen a `stop_klipper `call before... but only a `stop_klipperscreen`.
jordanruthe commented 2020-11-28 16:16:41 +01:00 (Migrated from github.com)

Good catches, just pushed an update

Good catches, just pushed an update
dw-0 (Migrated from github.com) reviewed 2020-11-28 16:19:41 +01:00
dw-0 (Migrated from github.com) commented 2020-11-28 16:18:51 +01:00

status_msg still needs to be fixed. :)

status_msg still needs to be fixed. :)
@@ -169,0 +180,4 @@
if [[ $(md5sum $KLIPPERSCREEN_DIR/scripts/KlipperScreen-requirements.txt | cut -d " " -f1) != $KLIPPERSCREEN_OLDREQ_MD5SUM ]]; then
status_msg "New dependecies detected..."
PYTHONDIR="${HOME}/.KlipperScreen-env"
$PYTHONDIR/bin/pip install -r $KLIPPERSCREEN_DIR/scripts/KlipperScreen-requirements.txt
dw-0 (Migrated from github.com) commented 2020-11-28 16:19:31 +01:00

old typo gone, new typo here haha

old typo gone, new typo here haha
jordanruthe (Migrated from github.com) reviewed 2020-11-28 16:39:12 +01:00
@@ -169,0 +180,4 @@
if [[ $(md5sum $KLIPPERSCREEN_DIR/scripts/KlipperScreen-requirements.txt | cut -d " " -f1) != $KLIPPERSCREEN_OLDREQ_MD5SUM ]]; then
status_msg "New dependecies detected..."
PYTHONDIR="${HOME}/.KlipperScreen-env"
$PYTHONDIR/bin/pip install -r $KLIPPERSCREEN_DIR/scripts/KlipperScreen-requirements.txt
jordanruthe (Migrated from github.com) commented 2020-11-28 16:39:12 +01:00

Backed that out and re-pushed it

Backed that out and re-pushed it
Sign in to join this conversation.