Skip to content

Commit

Permalink
#31, Fix priviledges issue during install the package
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Jun 7, 2024
1 parent 22a899f commit 34df4d4
Show file tree
Hide file tree
Showing 3 changed files with 7 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 = 41
SPK_REV = 42
SPK_ICON = src/rr-manager.png

DSM_UI_DIR = ui
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions src/ui/install.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 34df4d4

Please sign in to comment.