mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-25 06:35:18 +00:00
21 lines
507 B
Plaintext
21 lines
507 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
export GROUP_INPUT=input
|
||
|
|
||
|
if [ -f /etc/group ]; then
|
||
|
if ! grep -q $GROUP_INPUT /etc/group; then
|
||
|
echo "Creating group $GROUP_INPUT"
|
||
|
|
||
|
groupadd $GROUP_INPUT
|
||
|
fi
|
||
|
else
|
||
|
echo "Warning: /etc/group not found"
|
||
|
fi
|
||
|
|
||
|
# 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+p /usr/bin/sunshine"
|
||
|
$path_to_setcap cap_sys_admin+p $(readlink -f /usr/bin/sunshine)
|
||
|
fi
|