mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-26 09:35:24 +00:00
Merge pull request #1269 from ublue-os/update-sunshine-workaround
fix: update sunshine workaround to handle symlinks
This commit is contained in:
commit
bca46180e1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user