build(linux): make postinst use which to find sunshine (#2812)
This commit is contained in:
parent
3cc12dfbe7
commit
5cea1e1458
1 changed files with 3 additions and 2 deletions
|
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
# Ensure Sunshine can grab images from KMS
|
# Ensure Sunshine can grab images from KMS
|
||||||
path_to_setcap=$(which setcap)
|
path_to_setcap=$(which setcap)
|
||||||
|
path_to_sunshine=$(readlink -f $(which sunshine))
|
||||||
if [ -x "$path_to_setcap" ] ; then
|
if [ -x "$path_to_setcap" ] ; then
|
||||||
echo "$path_to_setcap cap_sys_admin+p /usr/bin/sunshine"
|
echo "$path_to_setcap cap_sys_admin+p $path_to_sunshine"
|
||||||
$path_to_setcap cap_sys_admin+p $(readlink -f /usr/bin/sunshine)
|
$path_to_setcap cap_sys_admin+p $path_to_sunshine
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Trigger udev rule reload for /dev/uinput
|
# Trigger udev rule reload for /dev/uinput
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue