summarylogtreecommitdiffstats
path: root/sunshine-git.install
blob: 1c40639740feece376d1e2b792c5c920132fb423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
do_setcap() {
  sudo setcap cap_sys_admin+p /usr/bin/$(readlink $(which sunshine))
}

post_install() {
  do_setcap
  if ! getent group input > /dev/null; then
    echo "Creating group input"
    groupadd -r input
 fi
}

post_upgrade() {
  do_setcap
}