summaryrefslogtreecommitdiff
path: root/extra/transmission/transmission-cli.install
blob: f113d47c8a7c1f97cc37aea3804f37825e175d4a (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
  post_upgrade
  passwd -l transmission &>/dev/null
}

post_upgrade() {
  # create user/group that the daemon will run as by default, do not delete this on uninstall, as it will own files
  getent group transmission >/dev/null || groupadd -g 169 transmission
  getent passwd transmission >/dev/null || useradd -c 'Transmission BitTorrent Client' -u 169 -g transmission -b '/var/lib' -m -s /bin/false transmission
}