Skip to content

Commit bbb9813

Browse files
committed
Fix uninstall not really killing the service
1 parent 8de439c commit bbb9813

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ fi
1616

1717
# check if version.txt exists and is larger than 2.0.0
1818
if [ -f $SCRIPT_DIR/version.txt ] &&
19-
( [ "$(grep -o 'Version: [^ ]*' version.txt | cut -d' ' -f2)" = "2.0.0" ] ||
20-
[ "$(grep -o 'Version: [^ ]*' version.txt | cut -d' ' -f2)" \> "2.0.0" ] ); then
19+
( [ "$(grep -o 'Version: [^ ]*' $SCRIPT_DIR/version.txt | cut -d' ' -f2)" = "2.0.0" ] ||
20+
[ "$(grep -o 'Version: [^ ]*' $SCRIPT_DIR/version.txt | cut -d' ' -f2)" \> "2.0.0" ] ); then
2121
# delete old dbus-opendtu.py file
2222
if [ -f $SCRIPT_DIR/dbus-opendtu.py ]; then
2323
rm $SCRIPT_DIR/dbus-opendtu.py

uninstall.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ -d /service/$SERVICE_NAME ]; then
1010
fi
1111

1212
# end the dbus-opendtu process
13+
kill $(pgrep -f "supervise $SERVICE_NAME\$")
1314
kill $(pgrep -f "python $SCRIPT_DIR/dbus_opendtu.py")
1415

1516
# delete old logs if they exist

0 commit comments

Comments
 (0)