Skip to content

Commit

Permalink
Update uninstall.sh (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
henne49 authored Jul 14, 2023
1 parent 65af592 commit 9681314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
SERVICE_NAME=$(basename $SCRIPT_DIR)

filename=/data/rc.local
rm /service/$SERVICE_NAME
kill $(pgrep -f 'supervise dbus-opendtu')
chmod a-x $SCRIPT_DIR/service/run
$SCRIPT_DIR/restart.sh
STARTUP=$SCRIPT_DIR/install.sh
#sed -i "\~/data/dbus-opendtu/install.sh~d" $filename
sed -i "\~$STARTUP~d" $filename

0 comments on commit 9681314

Please sign in to comment.