Skip to content

Commit

Permalink
Fix uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
leowinterde authored Mar 29, 2024
1 parent 982a083 commit 727efca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DAEMON_NAME=${SCRIPT_DIR##*/}
RC_FILE_PATH=/data/rc.local

rm /service/$DAEMON_NAME
kill $(pgrep -f "python $SCRIPT_DIR/$DAEMON_NAME")
kill $(pgrep -f 'supervise $DAEMON_NAME')
chmod a-x $SCRIPT_DIR/service/run
$SCRIPT_DIR/restart.sh
sed -i "\~$STARTUP~d" $RC_FILE_PATH

0 comments on commit 727efca

Please sign in to comment.