Merge pull request #1269 from ublue-os/update-sunshine-workaround

fix: update sunshine workaround to handle symlinks
This commit is contained in:
RJ Trujillo 2024-06-24 10:28:30 -04:00 committed by GitHub
commit bca46180e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ ExecStartPre=/usr/bin/bash -c "[ -x /usr/local/bin/.sunshine ] || /usr/bin/cp /u
# This is faster than using .mount unit. Also allows for the previous line/cleanup
ExecStartPre=/usr/bin/bash -c "/usr/bin/mount --bind /usr/local/bin/.sunshine /usr/bin/sunshine"
# Fix caps
ExecStart=/usr/sbin/setcap 'cap_sys_admin+p' /usr/bin/sunshine
ExecStart=/usr/bin/bash -c "/usr/sbin/setcap 'cap_sys_admin+p' $(/usr/bin/readlink -f $(/usr/bin/which sunshine))"
# Clean-up after ourselves
ExecStop=/usr/bin/umount /usr/bin/sunshine
ExecStop=/usr/bin/rm /usr/local/bin/.sunshine