From 34df4d44b0054b3c6bac88235227b0834313fc3f Mon Sep 17 00:00:00 2001 From: Yurii Nazarenko Date: Fri, 7 Jun 2024 15:32:55 +0200 Subject: [PATCH] #31, Fix priviledges issue during install the package --- Makefile | 2 +- src/conf/{privilege => privilege_} | 0 src/ui/install.sh | 6 ++++++ 3 files changed, 7 insertions(+), 1 deletion(-) rename src/conf/{privilege => privilege_} (100%) 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