mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-11 00:44:30 +00:00
build(linux): make postinst use which to find sunshine (#2812)
This commit is contained in:
parent
3cc12dfbe7
commit
5cea1e1458
@ -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…
x
Reference in New Issue
Block a user