diff --git a/Makefile b/Makefile index ec5e74a..640916f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SPK_NAME = rr-manager SPK_VERS = 2.0 -SPK_REV = 41 +SPK_REV = 42 SPK_ICON = src/rr-manager.png DSM_UI_DIR = ui diff --git a/src/conf/privilege b/src/conf/privilege_ similarity index 100% rename from src/conf/privilege rename to src/conf/privilege_ diff --git a/src/ui/install.sh b/src/ui/install.sh index 047e66e..072a01a 100644 --- a/src/ui/install.sh +++ b/src/ui/install.sh @@ -1,4 +1,10 @@ #!/bin/bash + +# clean up OOTB the privilege file +mv /var/packages/rr-manager/conf/privilege /tmp +# use the custom privilege file +mv /var/packages/rr-manager/conf/privilege_ /var/packages/rr-manager/conf/privilege +# apply root privilege to the package sed -i ''s/package/root/g'' /var/packages/rr-manager/conf/privilege synopkg restart rr-manager cat /var/packages/rr-manager/target/ui/tasks.sql | sqlite3 /usr/syno/etc/esynoscheduler/esynoscheduler.db