summaryrefslogtreecommitdiff
path: root/testing/transmission/transmission-cli.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-23 01:12:09 -0700
committerroot <root@rshg054.dnsready.net>2012-09-23 01:12:09 -0700
commita7f8166c8968d3414378051d28dcfcc3e377837b (patch)
tree1b1b5c4383fe5d1f8c98c8c417fd588e67877e13 /testing/transmission/transmission-cli.install
parent0297e16d6d46f426939811847e72539d15bbf12d (diff)
Sun Sep 23 01:11:08 PDT 2012
Diffstat (limited to 'testing/transmission/transmission-cli.install')
-rw-r--r--testing/transmission/transmission-cli.install7
1 files changed, 4 insertions, 3 deletions
diff --git a/testing/transmission/transmission-cli.install b/testing/transmission/transmission-cli.install
index d99dcf8b7..8ab275e61 100644
--- a/testing/transmission/transmission-cli.install
+++ b/testing/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' -s /bin/false transmission
- passwd -l transmission &>/dev/null
+ getent passwd transmission >/dev/null || useradd -c 'Transmission BitTorrent Client' -u 169 -g transmission -b '/var/lib' -m -s /bin/false transmission
systemd-tmpfiles --create transmission.conf
}