Skip to content

Commit

Permalink
Fix generated debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
loki committed Aug 20, 2021
1 parent c41df22 commit 03d572f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gen-deb.in
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ if [ -f /etc/sunshine/sunshine.conf ]; then
chmod 666 /etc/sunshine/sunshine.conf
fi
setcap cap_sys_admin+ep /usr/bin/sunshine
# Ensure Sunshine can grab images from KMS
path_to_setcap=$(which setcap)
if [ -x "$path_to_setcap" ] ; then
echo "$path_to_setcap cap_sys_admin+ep /usr/bin/sunshine"
$path_to_setcap cap_sys_admin+ep /usr/bin/sunshine
fi
EOF

cat << 'EOF' > $RULES/85-sunshine-rules.rules
Expand Down

0 comments on commit 03d572f

Please sign in to comment.