Skip to content

Commit

Permalink
#32, Add uninstall steps to cleanup the tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Jun 7, 2024
1 parent 1436b4b commit 6724efa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = rr-manager
SPK_VERS = 2.0
SPK_REV = 39
SPK_REV = 40
SPK_ICON = src/rr-manager.png

DSM_UI_DIR = ui
Expand Down
7 changes: 7 additions & 0 deletions src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@ service_postupgrade ()
touch /tmp/rr_manager_installed
rm -fr ${TMP_DIR}/${PACKAGE}
exit 0
}

service_postuninst ()
{
echo "DELETE FROM task WHERE task_name='RunRrUpdate'" | sqlite3 /usr/syno/etc/esynoscheduler/esynoscheduler.db
echo "DELETE FROM task WHERE task_name='ApplyRRConfig'" | sqlite3 /usr/syno/etc/esynoscheduler/esynoscheduler.db
exit 0
}

0 comments on commit 6724efa

Please sign in to comment.