summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreyson Christoforo2023-02-25 18:53:49 +0000
committerGreyson Christoforo2023-02-25 18:53:49 +0000
commitd0c7e7cc0ab9b1bc61c58ca9e108fce72a567a46 (patch)
tree32deb73ad148f15faa74dccc31b03f173feeb054
parent5a60c34b9cb4d01f6097a4065c2b32941ed5f2f6 (diff)
downloadaur-d0c7e7cc0ab9b1bc61c58ca9e108fce72a567a46.tar.gz
fix setcap
-rw-r--r--sunshine-git.install9
-rw-r--r--sunshine.install7
2 files changed, 8 insertions, 8 deletions
diff --git a/sunshine-git.install b/sunshine-git.install
index 98328ef488b5..1c40639740fe 100644
--- a/sunshine-git.install
+++ b/sunshine-git.install
@@ -1,8 +1,15 @@
-post_install() {
+do_setcap() {
sudo setcap cap_sys_admin+p /usr/bin/$(readlink $(which sunshine))
+}
+
+post_install() {
+ do_setcap
if ! getent group input > /dev/null; then
echo "Creating group input"
groupadd -r input
fi
}
+post_upgrade() {
+ do_setcap
+}
diff --git a/sunshine.install b/sunshine.install
deleted file mode 100644
index e5681685a226..000000000000
--- a/sunshine.install
+++ /dev/null
@@ -1,7 +0,0 @@
-post_install() {
- if ! getent group input > /dev/null; then
- echo "Creating group input"
- groupadd -r input
- fi
-}
-