summaryrefslogtreecommitdiff
path: root/extra/transmission/transmission-cli.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/transmission/transmission-cli.install')
-rw-r--r--extra/transmission/transmission-cli.install5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/transmission/transmission-cli.install b/extra/transmission/transmission-cli.install
index 68df89498..8ab275e61 100644
--- a/extra/transmission/transmission-cli.install
+++ b/extra/transmission/transmission-cli.install
@@ -3,14 +3,15 @@ post_install() {
If you want to run the Transmission daemon at boot,
add transmissiond to the DAEMONS array in /etc/rc.conf.
-
_EOF
+
+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
- passwd -l transmission &>/dev/null
systemd-tmpfiles --create transmission.conf
}